hugo-theme-nocolor/layouts/_default/baseof.html

48 lines
2.0 KiB
HTML
Raw Normal View History

2019-11-20 19:56:22 +01:00
<!DOCTYPE html>
<html lang="{{ default "en" .Lang }}">
2019-11-20 19:56:22 +01:00
<head>
<meta charset="utf-8" />
<title>{{ if and (.Title) (not (eq .Title .Site.Title)) }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta name="author" content="{{ .Site.Author.name }}" />
{{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end -}}
{{ if .Site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end -}}
{{ if .Site.Params.twitter_cards }}{{ template "_internal/twitter_cards.html" . }}{{ end -}}
2020-12-28 20:57:13 +01:00
{{ hugo.Generator }}
2020-12-28 20:12:36 +01:00
{{- with .Site.Home.OutputFormats.Get "RSS" }}
{{- $rssLink := .RelPermalink }}
<link href="{{ $rssLink }}" rel="{{ .Rel }}" type="application/rss+xml" title="{{ $.Site.Title }} Feed" />
{{- with $.Page.OutputFormats.Get "RSS" }}
{{- if ne $rssLink .RelPermalink }}
2020-12-29 02:44:35 +01:00
<link href="{{ .RelPermalink }}" rel="{{ .Rel }}" type="application/rss+xml" title="{{ $.Site.Title }}: {{ $.Title }} Feed" />
2020-12-28 20:12:36 +01:00
{{- end }}
{{- end }}
{{- end }}
{{- with .Site.Params.favicon | default "favicon.ico" }}
{{- if resources.Get . }}
2020-12-29 15:28:33 +01:00
{{- $favicon := resources.Get . }}
2020-12-28 20:12:36 +01:00
<link rel="shortcut icon" href="{{ $favicon.RelPermalink }}" type="{{ $favicon.MediaType }}" />
{{- end }}
2019-11-20 19:56:22 +01:00
{{- end }}
2020-12-28 20:12:36 +01:00
{{- $style := resources.Get "nocolor.css" }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
2019-11-26 21:54:04 +01:00
{{- with .Site.Params.css }}
{{- if resources.Get . }}
2020-12-29 15:28:33 +01:00
{{- $styleCustom := resources.Get . }}
2019-11-26 21:54:04 +01:00
<link rel="stylesheet" href="{{ $styleCustom.RelPermalink }}" />
{{- end }}
{{- end }}
2019-11-20 23:21:42 +01:00
{{ partial "extra_head.html" . }}
2019-11-20 19:56:22 +01:00
</head>
<body>
{{ partial "header.html" . }}
2021-03-23 02:45:30 +01:00
<main>
2019-11-20 19:56:22 +01:00
{{ block "main" . }}{{ end }}
2021-03-23 02:45:30 +01:00
</main>
2019-11-24 18:40:56 +01:00
{{ partial "extra_foot.html" . }}
2019-11-20 19:56:22 +01:00
{{ partial "footer.html" . }}
</body>
</html>