aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-09-25 09:04:44 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-09-25 09:04:44 +0200
commit17b0d80b9f0d1c99da94d917b687447c1d711721 (patch)
tree355b6fb952233544803489b4805a0eca9ffc4d4c /layouts
parentf94600dd833debd34ed0506bf25a9cbd86f0f4c9 (diff)
feat: Add RSS feed
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head/meta.html12
1 files changed, 12 insertions, 0 deletions
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