diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 2d2b0abf3..48e680f3d 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -250,3 +250,6 @@ viewer = true # Image Viewer [docs] [docs.nav] # expand = true # Expand docs navigations. + +[feeds] + # content = true diff --git a/exampleSite/content/docs/configuration/site-params/index.md b/exampleSite/content/docs/configuration/site-params/index.md index 25648a471..289d035b2 100644 --- a/exampleSite/content/docs/configuration/site-params/index.md +++ b/exampleSite/content/docs/configuration/site-params/index.md @@ -149,6 +149,8 @@ The site parameters are located in `config/_default/params.toml` by default. | `pinnedPost` | Boolean | `true` | Turn on/off pinned posts. | `pinnedPostCount` | Integer | `1` | The number of pinned posts. | `rss` | String/Boolean | `true` | Display the RSS button on the social links. Turn it off by `false`, link it to homepage all the times by setting it to `home`. +| `feeds` | Object | - | RSS feeds +| `feeds.content` | Boolean | `false` | Display the full content if ebabled. | `actionsPanel` | Object | - | | `actionsPanel.disabled` | Boolean | `false` | Disable actions panel. diff --git a/exampleSite/content/docs/configuration/site-params/index.zh-hans.md b/exampleSite/content/docs/configuration/site-params/index.zh-hans.md index b73e641a4..cda19969e 100644 --- a/exampleSite/content/docs/configuration/site-params/index.zh-hans.md +++ b/exampleSite/content/docs/configuration/site-params/index.zh-hans.md @@ -152,6 +152,8 @@ authors = ["RazonYang"] | `pinnedPost` | Boolean | `true` | 开启/禁用文章置顶。 | `pinnedPostCount` | Integer | `1` | 置顶的文章数量。 | `rss` | String/Boolean | `true` | 在社交链接中显示 RSS 链接。`false` 为不显示,`home` 则总是链接到主页。 +| `feeds` | Object | - | RSS feeds +| `feeds.content` | Boolean | `false` | Display the full content if ebabled. | `actionsPanel` | Object | - | | `actionsPanel.disabled` | Boolean | `false` | 禁用 actions panel。 diff --git a/exampleSite/content/docs/configuration/site-params/index.zh-hant.md b/exampleSite/content/docs/configuration/site-params/index.zh-hant.md index 195467799..0d5843751 100644 --- a/exampleSite/content/docs/configuration/site-params/index.zh-hant.md +++ b/exampleSite/content/docs/configuration/site-params/index.zh-hant.md @@ -152,6 +152,8 @@ authors = ["RazonYang"] | `pinnedPost` | Boolean | `true` | 開啟/禁用文章置頂。 | `pinnedPostCount` | Integer | `1` | 置頂的文章數量。 | `rss` | String/Boolean | `true` | 在社交鏈接中顯示 RSS 鏈接。`false` 為不顯示,`home` 則總是鏈接到主頁。 +| `feeds` | Object | - | RSS feeds +| `feeds.content` | Boolean | `false` | Display the full content if ebabled. | `actionsPanel` | Object | - | | `actionsPanel.disabled` | Boolean | `false` | 禁用 actions panel。 diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 8f4560ee8..6d6d98368 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,2 +1 @@ -{{- $res := partial "rss" . }} -{{- replace $res "{year}" now.Year 1 | safeHTML -}} +{{- partial "rss" . }} diff --git a/layouts/partials/footer/copyright.html b/layouts/partials/footer/copyright.html index 94e155cb5..990c5f487 100644 --- a/layouts/partials/footer/copyright.html +++ b/layouts/partials/footer/copyright.html @@ -1,3 +1,3 @@