aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/_default/hugo.toml7
-rw-r--r--layouts/partials/head/meta.html12
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