2024-01-20 17:09:01 +08:00
|
|
|
|
namespace YaeBlog.Core.Models;
|
2024-01-17 13:20:32 +08:00
|
|
|
|
|
|
|
|
|
public class BlogOptions
|
|
|
|
|
{
|
|
|
|
|
public const string OptionName = "Blog";
|
|
|
|
|
|
2024-01-21 22:46:12 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 博客markdown文件的根目录
|
|
|
|
|
/// </summary>
|
2024-01-17 13:20:32 +08:00
|
|
|
|
public required string Root { get; set; }
|
2024-01-20 17:09:01 +08:00
|
|
|
|
|
2024-01-21 22:46:12 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 博客作者
|
|
|
|
|
/// </summary>
|
2024-01-21 19:57:14 +08:00
|
|
|
|
public required string Author { get; set; }
|
|
|
|
|
|
2024-02-01 11:29:03 +08:00
|
|
|
|
public required string Announcement { get; set; }
|
|
|
|
|
|
2024-01-21 22:46:12 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 博客的起始年份
|
|
|
|
|
/// </summary>
|
|
|
|
|
public required int StartYear { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 博客起始页面的背景图片
|
|
|
|
|
/// </summary>
|
2024-01-21 19:57:14 +08:00
|
|
|
|
public required string BannerImage { get; set; }
|
2024-01-21 22:46:12 +08:00
|
|
|
|
|
2024-01-23 17:55:34 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文章页面的背景图片
|
|
|
|
|
/// </summary>
|
|
|
|
|
public required string EssayImage { get; set; }
|
|
|
|
|
|
2024-01-21 22:46:12 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 博客底部是否显示ICP备案信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? RegisterInformation { get; set; }
|
2024-01-27 14:08:25 +08:00
|
|
|
|
|
|
|
|
|
public required AboutInfo About { get; set; }
|
2024-01-27 14:55:02 +08:00
|
|
|
|
|
|
|
|
|
public required List<FriendLink> Links { get; set; }
|
2024-01-17 13:20:32 +08:00
|
|
|
|
}
|