diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-25 09:04:44 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-25 09:04:44 +0200 |
| commit | 17b0d80b9f0d1c99da94d917b687447c1d711721 (patch) | |
| tree | 355b6fb952233544803489b4805a0eca9ffc4d4c | |
| parent | f94600dd833debd34ed0506bf25a9cbd86f0f4c9 (diff) | |
feat: Add RSS feed
| -rw-r--r-- | config/_default/hugo.toml | 7 | ||||
| -rw-r--r-- | layouts/partials/head/meta.html | 12 |
2 files changed, 19 insertions, 0 deletions
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 @@ +<meta charset="UTF-8"> +<meta http-equiv="X-UA-Compatible" content="IE=edge"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }}{{ end }}</title> +<meta name="description" + content="{{ if .IsPage }}{{ or .Params.description .Summary }}{{ else if .IsHome }}{{ .Site.Params.description }}{{ else if .IsNode }}{{ or .Params.description .Summary }}{{ end }}"> +<link rel="canonical" href="{{ .Permalink }}"> +<link rel="robots" href="/robots.txt" /> +{{ with .OutputFormats.Get "rss" -}} +{{ printf ` +<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end }}
\ No newline at end of file |
