From 64d48fcba8ef7ac052aadd1aac2aa396d0ff3709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Fri, 1 Apr 2022 09:41:55 +0200 Subject: [PATCH] Add: RSS link in head and footer RSS [is shipped with Hugo](https://gohugo.io/templates/rss/), only need to be added to the proper places (head and footer in my case). Fixes #4 --- TODO.md | 2 +- src/themes/oscar/layouts/partials/footer.html | 6 +++++- src/themes/oscar/layouts/partials/metas.html | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index aaccb37..ca05956 100644 --- a/TODO.md +++ b/TODO.md @@ -23,7 +23,7 @@ - [x] Add dotfiles to the resume - [x] Add segun to the colophon - [x] Take a look to the twitter-card/og for the index page -- [ ] RSS +- [x] RSS + referencee it in header - [ ] Add vim + productivity to "hobbies" or "tools" section - [ ] General review + Clean some stuff here and there - [ ] Some images contains a `

`, get rid of it. diff --git a/src/themes/oscar/layouts/partials/footer.html b/src/themes/oscar/layouts/partials/footer.html index 76f1400..da07b88 100644 --- a/src/themes/oscar/layouts/partials/footer.html +++ b/src/themes/oscar/layouts/partials/footer.html @@ -6,6 +6,10 @@

  • twitter
  • instagram
  • twich
  • -
  • info@oscarmlage.com
  • + {{ with .OutputFormats.Get "rss" -}} +
  • rss
  • + {{ end -}} +
  • info@oscarmlage.com
  • + diff --git a/src/themes/oscar/layouts/partials/metas.html b/src/themes/oscar/layouts/partials/metas.html index 1263621..4cbf9cb 100644 --- a/src/themes/oscar/layouts/partials/metas.html +++ b/src/themes/oscar/layouts/partials/metas.html @@ -28,7 +28,9 @@ - + {{ with .OutputFormats.Get "rss" -}} + + {{ end -}}