Skip to content

Commit

Permalink
Add RSS feed (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaureir authored Nov 25, 2024
1 parent 7d8109b commit 1c7d36f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ theme = ["pyladies"]
summaryLength = 10
enableInlineShortcodes = true

[outputs]
home = ["HTML", "RSS"]

[[menus.main]]
name = 'Home'
pageRef = '/'
Expand Down
3 changes: 3 additions & 0 deletions themes/pyladies/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
<meta property="og:image:alt" content="PyLadiesCon Logo">
{{ end }}
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

0 comments on commit 1c7d36f

Please sign in to comment.