diff options
Diffstat (limited to 'layouts/_partials')
-rw-r--r-- | layouts/_partials/footer.html | 10 | ||||
-rw-r--r-- | layouts/_partials/head.html | 21 | ||||
-rw-r--r-- | layouts/_partials/header.html | 10 | ||||
-rw-r--r-- | layouts/_partials/tags.html | 6 |
4 files changed, 47 insertions, 0 deletions
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html new file mode 100644 index 0000000..52c7a99 --- /dev/null +++ b/layouts/_partials/footer.html @@ -0,0 +1,10 @@ +<footer> + Made with <a href="https://gohugo.io">Hugo</a>. All content is licensed under + <a + href="http://creativecommons.org/licenses/by-sa/4.0/" + target="_blank" + rel="license noopener noreferrer" + > + CC BY-SA 4.0 + </a> +</footer> diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html new file mode 100644 index 0000000..2fe366d --- /dev/null +++ b/layouts/_partials/head.html @@ -0,0 +1,21 @@ +<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 }}"/> +{{ range slice "style.css" "syntax.css"}} +{{- with resources.Get . }} + {{- 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 }} +{{ end }} +<title>{{ printf "%s | %s" .Title site.Title }}</title> + diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html new file mode 100644 index 0000000..bf7f2f2 --- /dev/null +++ b/layouts/_partials/header.html @@ -0,0 +1,10 @@ +<header> + <p id="site-title">{{.Title}}</p> + <nav id="main-nav"> + <ul> + {{ with .Menus.main }}{{ range . }} + <li><a href="{{ .URL }}">{{ .Name }}</a></li> + {{ end }}{{ end }} + </ul> + </nav> +</header> diff --git a/layouts/_partials/tags.html b/layouts/_partials/tags.html new file mode 100644 index 0000000..b464c47 --- /dev/null +++ b/layouts/_partials/tags.html @@ -0,0 +1,6 @@ +{{ with .GetTerms "tags" }} +<p> + Tags:{{ range $i, $e := . }}{{- if $i -}},{{ end -}}{{ with $e }} + <a class="tag" href="{{.Permalink}}">{{lower .Title}}</a>{{end}}{{ end }} +</p> +{{ end }} |