From 17b0d80b9f0d1c99da94d917b687447c1d711721 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 25 Sep 2023 09:04:44 +0200 Subject: feat: Add RSS feed --- config/_default/hugo.toml | 7 +++++++ layouts/partials/head/meta.html | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 layouts/partials/head/meta.html diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index fc4f4de..4f444de 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -19,3 +19,10 @@ lineNumbersInTable = false tabWidth = 4 noClasses = true style = "monokai" + +[outputs] +section = ["html", "rss"] + +[author] +email = 'martin@lehoux.net' +name = "Martin 'Kagamino' Lehoux" diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html new file mode 100644 index 0000000..23a770a --- /dev/null +++ b/layouts/partials/head/meta.html @@ -0,0 +1,12 @@ + + + +{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }} + + + +{{ with .OutputFormats.Get "rss" -}} +{{ printf ` +` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }} \ No newline at end of file -- cgit v1.3