YaeBlog/YaeBlog.Core/Models/BlogOptions.cs

27 lines
597 B
C#
Raw Permalink 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>
/// 博客正文的广而告之
2024-01-21 22:46:12 +08:00
/// </summary>
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>
/// 博客的友链
2024-01-21 22:46:12 +08:00
/// </summary>
2024-01-27 14:55:02 +08:00
public required List<FriendLink> Links { get; set; }
2024-01-17 13:20:32 +08:00
}