diff --git a/src/Moonglade.Configuration/FeedSettings.cs b/src/Moonglade.Configuration/FeedSettings.cs index 504da6c1d..c702055c3 100644 --- a/src/Moonglade.Configuration/FeedSettings.cs +++ b/src/Moonglade.Configuration/FeedSettings.cs @@ -5,8 +5,8 @@ namespace Moonglade.Configuration; public class FeedSettings : IBlogSettings { - [Display(Name = "RSS items")] - public int RssItemCount { get; set; } + [Display(Name = "Feed items")] + public int FeedItemCount { get; set; } [Display(Name = "Use full blog post content instead of abstract")] public bool UseFullContent { get; set; } @@ -14,7 +14,7 @@ public class FeedSettings : IBlogSettings [JsonIgnore] public static FeedSettings DefaultValue => new() { - RssItemCount = 20, + FeedItemCount = 20, UseFullContent = false }; } \ No newline at end of file diff --git a/src/Moonglade.Syndication/SyndicationDataSource.cs b/src/Moonglade.Syndication/SyndicationDataSource.cs index 7c0e02704..c971fccbf 100644 --- a/src/Moonglade.Syndication/SyndicationDataSource.cs +++ b/src/Moonglade.Syndication/SyndicationDataSource.cs @@ -58,9 +58,9 @@ public async Task> GetFeedDataAsync(string catSlug = null) private async Task> GetFeedEntriesAsync(Guid? catId = null) { int? top = null; - if (_blogConfig.FeedSettings.RssItemCount != 0) + if (_blogConfig.FeedSettings.FeedItemCount != 0) { - top = _blogConfig.FeedSettings.RssItemCount; + top = _blogConfig.FeedSettings.FeedItemCount; } var postSpec = new PostByCatSpec(catId, top); diff --git a/src/Moonglade.Web/Pages/Settings/Subscription.cshtml b/src/Moonglade.Web/Pages/Settings/Subscription.cshtml index 2faaa3d16..c969a48da 100644 --- a/src/Moonglade.Web/Pages/Settings/Subscription.cshtml +++ b/src/Moonglade.Web/Pages/Settings/Subscription.cshtml @@ -24,11 +24,11 @@
- -
@SharedLocalizer["The number of entries to include in RSS feed."]
+ +
@SharedLocalizer["The number of entries to include in RSS/ATOM feed."]
- +
diff --git a/src/Moonglade.Web/Resources/Program.zh-Hans.resx b/src/Moonglade.Web/Resources/Program.zh-Hans.resx index 0ae31e3f1..26560a27b 100644 --- a/src/Moonglade.Web/Resources/Program.zh-Hans.resx +++ b/src/Moonglade.Web/Resources/Program.zh-Hans.resx @@ -663,8 +663,8 @@ 路由名称 - - RSS条目数量 + + 订阅条目数量 保存 @@ -756,8 +756,8 @@ 留空自动选取文章前 {0} 字符作为摘要 - - RSS中包含的条目数量 + + RSS/ATOM 中包含的条目数量 主题 diff --git a/src/Moonglade.Web/Resources/Program.zh-Hant.resx b/src/Moonglade.Web/Resources/Program.zh-Hant.resx index 1cbf49b3d..113d51ef4 100644 --- a/src/Moonglade.Web/Resources/Program.zh-Hant.resx +++ b/src/Moonglade.Web/Resources/Program.zh-Hant.resx @@ -643,8 +643,8 @@ 路由名稱 - - RSS條目數量 + + 訂閱條目數量 保存 @@ -737,7 +737,7 @@ 留空自動選取文章前 {0} 字元作為摘要 - RSS中包含的條目數量 + RSS/ATOM 中包含的條目數量 主題