Skip to content

Commit

Permalink
docs: document the feeds parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Sep 8, 2022
1 parent 4583d25 commit 0e5931b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ viewer = true # Image Viewer
# expand = true # Expand docs navigations.

[feeds]
content = true
# content = true
2 changes: 2 additions & 0 deletions exampleSite/content/docs/configuration/site-params/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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。

Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/rss.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{- partial "rss" . }}
{{- partial "rss" . }}

0 comments on commit 0e5931b

Please sign in to comment.