From 7efd9a3bd6422a03e19c0829029f5a20ad04b0c7 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 5 May 2022 13:17:37 -0700 Subject: [PATCH] Redo all the RSS -> feeds go to feed.rss now! --- config.toml | 20 +++++++++++++++----- content/cats/index.es.md | 1 + content/cats/index.md | 1 + content/nethack/index.md | 1 + content/resume/index.es.md | 1 + content/resume/index.md | 1 + layouts/_default/{feed.rss => rss.xml} | 4 +++- layouts/partials/header.html | 6 ++---- 8 files changed, 25 insertions(+), 10 deletions(-) rename layouts/_default/{feed.rss => rss.xml} (96%) diff --git a/config.toml b/config.toml index e32450b..4fcc243 100644 --- a/config.toml +++ b/config.toml @@ -3,11 +3,6 @@ languageCode = 'en-us' title = 'Erynwells.me' defaultContentLanguage = 'en' -[outputFormats] - [outputFormats.RSS] - baseName = 'feed' - suffixes = ['rss'] - [author] name = 'Eryn Wells' @@ -17,6 +12,11 @@ name = 'Eryn Wells' [languages.es] weight = 2 +[mediaTypes] + [mediaTypes.'application/rss+xml'] + delimiter = '.' + suffixes = ['rss'] + [menu] [[menu.main]] identifier = 'blog' @@ -27,6 +27,16 @@ name = 'Eryn Wells' name = 'Résumé' url = '/resume/' +[outputFormats] + [outputFormats.RSS] + mediatype = 'application/rss+xml' + baseName = 'feed' + suffixes = ['rss'] + +[outputs] +home = ['HTML', 'RSS'] +page = ['HTML'] + [params] twitter = 'erynofwales' github = 'erynofwales' diff --git a/content/cats/index.es.md b/content/cats/index.es.md index ad47b66..f9bfff9 100644 --- a/content/cats/index.es.md +++ b/content/cats/index.es.md @@ -3,6 +3,7 @@ title: "Cats" date: 2021-10-01T23:14:56-07:00 draft: false type: simple +rss_ignore: true --- Here's the thing: cats are really, really good. Like just the very best. diff --git a/content/cats/index.md b/content/cats/index.md index ad47b66..f9bfff9 100644 --- a/content/cats/index.md +++ b/content/cats/index.md @@ -3,6 +3,7 @@ title: "Cats" date: 2021-10-01T23:14:56-07:00 draft: false type: simple +rss_ignore: true --- Here's the thing: cats are really, really good. Like just the very best. diff --git a/content/nethack/index.md b/content/nethack/index.md index 14ba542..dcddd7b 100644 --- a/content/nethack/index.md +++ b/content/nethack/index.md @@ -4,6 +4,7 @@ description: In which I play way too much of a silly command line Rogue-like gam date: 2022-04-13T08:43:46-07:00 draft: false type: simple +rss_ignore: true --- Every so often I get hooked on [this game][nethack]. It's a command line diff --git a/content/resume/index.es.md b/content/resume/index.es.md index cf2d4b4..eaba909 100644 --- a/content/resume/index.es.md +++ b/content/resume/index.es.md @@ -3,6 +3,7 @@ title: "Résumé" date: 2021-09-29T20:40:09-07:00 draft: false type: resume +rss_ignore: true --- ## Experience diff --git a/content/resume/index.md b/content/resume/index.md index ade2936..bd8f859 100644 --- a/content/resume/index.md +++ b/content/resume/index.md @@ -3,6 +3,7 @@ title: "Résumé" date: 2021-09-29T20:40:09-07:00 draft: false type: resume +rss_ignore: true --- {{< resume_section company="Apple" team="Authentication Experience" from=2019 >}} diff --git a/layouts/_default/feed.rss b/layouts/_default/rss.xml similarity index 96% rename from layouts/_default/feed.rss rename to layouts/_default/rss.xml index 6a39aa1..38d7088 100644 --- a/layouts/_default/feed.rss +++ b/layouts/_default/rss.xml @@ -26,6 +26,7 @@ {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} {{ range $pages }} + {{ if ne .Params.rss_ignore true }} {{ .Title }} {{ .Permalink }} @@ -35,5 +36,6 @@ {{ .Content | html }} {{ end }} + {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 4be9588..15e3c8d 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -19,10 +19,8 @@
  • tw
  • gh
  • ig
  • - {{ with .Site.GetPage "/blog" }} - {{ with .OutputFormats.Get "rss" }} -
  • rss
  • - {{ end }} + {{ with .OutputFormats.Get "rss" }} +
  • rss
  • {{ end }}