diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 5 | ||||
-rw-r--r-- | layouts/partials/head.html | 28 | ||||
-rw-r--r-- | layouts/partials/header.html | 0 | ||||
-rw-r--r-- | layouts/partials/tags.html | 5 |
4 files changed, 38 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..99d42f9 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ +<footer> +All content is openly licensed via <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a> +<br> +Made with <a href="https://gohugo.io">Hugo</a> +</footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..ce38afc --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,28 @@ +<meta charset="utf-8"/> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> +{{ with (or .Description .Site.Params.description) }} +<meta name="description" content="{{ . }}"/> +{{ end }} +{{ with .Keywords }}<meta name="keywords" content="{{ delimit . ", " }}"/>{{ end }} +<link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"/> +<link rel="canonical" href="{{ .Permalink }}"/> +{{- with resources.Get "style.css" }} + {{- if eq hugo.Environment "development" }} + <link rel="stylesheet" href="{{ .RelPermalink }}"> + {{- else }} + {{- with . | minify | fingerprint }} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{- end }} + {{- end }} +{{- end }} +{{- with resources.Get "syntax.css" }} + {{- if eq hugo.Environment "development" }} + <link rel="stylesheet" href="{{ .RelPermalink }}"> + {{- else }} + {{- with . | minify | fingerprint }} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{- end }} + {{- end }} +{{- end }} +<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/partials/header.html diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html new file mode 100644 index 0000000..8062534 --- /dev/null +++ b/layouts/partials/tags.html @@ -0,0 +1,5 @@ +{{ with .GetTerms "tags" }} +<br> +tags: +{{ range $i, $e := . }}{{- if $i -}}, {{ end -}}{{ with $e }}<a class="tag" href="{{.Permalink}}">{{lower .Title}}</a>{{end}}{{ end }} +{{ end }} |