From f42fb4d2231ec66e7109d64051a209480e6819c5 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 22 Dec 2023 16:04:21 -0600 Subject: [PATCH] configure rss --- config/_default/hugo.toml | 8 +++++++- content/archives.md | 5 ----- layouts/partials/about.html | 2 +- layouts/partials/archive.html | 2 +- layouts/partials/head.html | 4 ++++ 5 files changed, 13 insertions(+), 8 deletions(-) delete mode 100644 content/archives.md diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 164e5cc..7dddba8 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -11,7 +11,10 @@ enableInlineShortcodes = true # sectionPagesMenu = "main" [outputs] - home = ["HTML", "RSS", "JSON"] + home = ['html', 'rss', 'json'] + section = ['html'] + taxonomy = ['html',] + term = ['html', 'rss'] [permalinks] posts = ":filename" @@ -41,6 +44,9 @@ enableInlineShortcodes = true [services.instagram] disableInlineCSS = true + [services.rss] + limit = 20 + [services.twitter] disableInlineCSS = true diff --git a/content/archives.md b/content/archives.md deleted file mode 100644 index db16eed..0000000 --- a/content/archives.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -date: 2019-05-28 -type: section -layout: "archives" ---- diff --git a/layouts/partials/about.html b/layouts/partials/about.html index 5e69943..21d87bb 100644 --- a/layouts/partials/about.html +++ b/layouts/partials/about.html @@ -1,7 +1,7 @@ {{ with .Site.Params.about }}
{{ with .logo }}{{ end }} -

{{ .title }}

+

{{ .title }}  

{{ partial "tagline.html" . }}
 {{ site.Params.Author }} diff --git a/layouts/partials/archive.html b/layouts/partials/archive.html index fc7d6bd..71f3b34 100644 --- a/layouts/partials/archive.html +++ b/layouts/partials/archive.html @@ -6,7 +6,7 @@ {{ if .IsHome }}

{{ site.Params.indexTitle | markdownify }}

{{ else }} -

{{ .Title | markdownify }}

+

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

{{ end }} {{ end }} {{ .Content }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 96d783c..d14922a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,6 +5,10 @@ {{ if or (.Site.Params.noindex) (.Params.noindex) }} {{ end }} +{{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} + {{ partialCached "favicon" . }} {{ partial "opengraph" . }}