diff --git a/hugo.yaml b/hugo.yaml index 381b111..bb7a703 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -17,5 +17,32 @@ pagination: taxonomies: category: categories -disableKinds: -- term +mediaTypes: + "application/atom": + suffixes: + - "xml" + "application/rss+xml": + suffixes: + - "rss2" + +outputFormats: + Atom: + mediaType: application/atom + baseName: "atom" + path: feeds/ + isPlainText: false + Atom10: + mediaType: application/atom + baseName: "atom10" + path: feeds/ + isPlainText: false + RSS: + mediaType: "application/rss+xml" + path: feeds/ + noUgly: false + +outputs: + home: + - HTML + - RSS + - Atom diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7b45a2b..e2ee724 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,9 +9,9 @@ {{ partialCached "head/css.html" . }} - {{ with .OutputFormats.Get "rss" -}} + {{ with .OutputFormats.Get "RSS" -}} {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} - {{ end }} + {{- end }}
@@ -22,7 +22,23 @@
{{ block "main" . }}{{ end }}
- {{ partial "menu.html" (dict "menuID" "main" "page" .) }} +