Skip to content

Commit 1c7d36f

Browse files
authored
Add RSS feed (#169)
1 parent 7d8109b commit 1c7d36f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

hugo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ theme = ["pyladies"]
55
summaryLength = 10
66
enableInlineShortcodes = true
77

8+
[outputs]
9+
home = ["HTML", "RSS"]
10+
811
[[menus.main]]
912
name = 'Home'
1013
pageRef = '/'

themes/pyladies/layouts/partials/head.html

+3
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
<meta property="og:image:alt" content="PyLadiesCon Logo">
1616
{{ end }}
1717
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
18+
{{ with .OutputFormats.Get "rss" -}}
19+
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
20+
{{ end -}}
1821
{{ partialCached "head/css.html" . }}
1922
{{ partialCached "head/js.html" . }}

0 commit comments

Comments
 (0)