YaeBlog/YaeBlog.Core/Models/BlogOptions.cs

42 lines
976 B
C#
Raw Normal View History

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-01-21 22:46:12 +08:00
/// <summary>
/// 博客的起始年份
/// </summary>
public required int StartYear { get; set; }
/// <summary>
/// 博客项目的名称
/// </summary>
2024-01-20 17:09:01 +08:00
public required string ProjectName { get; set; }
2024-01-21 19:57:14 +08:00
2024-01-21 22:46:12 +08:00
/// <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-17 13:20:32 +08:00
}