Skip to content

Commit 46106fb

Browse files
committed
Add RSS Feed Support
1 parent d91b494 commit 46106fb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

content/en/history/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
title: History
33
weight: 500
44
type: docs
5+
outputs:
6+
- html
7+
- rss
58
aliases:
69
- /medley/history/
710
---

layouts/_default/rss.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
{{- $pctx := . }}
1313
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
1414

15+
<!-- Iterate through all sections and include both sections and
16+
pages in the rss feed. The default rss.xml only includes
17+
pages. -->
1518
{{- $pages := slice }}
1619
{{- $mainPages := where .Pages "Kind" "in" (slice "page" "section") }}
1720
{{- $pages = $pages | union $mainPages }}

0 commit comments

Comments
 (0)