38 lines
1.8 KiB
HTML
38 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
|
<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 -}}
|
|
{{ .Hugo.Generator }}
|
|
{{- with .Site.RSSLink }}
|
|
<link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} Feed" />
|
|
{{- end }}
|
|
{{- $favicon := .Site.Params.favicon | default "favicon.ico" }}
|
|
{{- $favtype := cond (eq (path.Ext $favicon) ".png") "image/png" "image/x-icon" }}
|
|
<link rel="shortcut icon" href="{{ .Site.BaseURL }}{{ $favicon }}" type="{{ $favtype }}" />
|
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/nocolor.css" />
|
|
{{- with .Site.Params.css }}
|
|
{{- if resources.Get . }}
|
|
{{- $styleCustom := resources.Get . | resources.Fingerprint }}
|
|
<link rel="stylesheet" href="{{ $styleCustom.RelPermalink }}" />
|
|
{{- else if fileExists (path.Join "static" .) }}
|
|
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}" />
|
|
{{- end }}
|
|
{{- end }}
|
|
{{ partial "extra_head.html" . }}
|
|
</head>
|
|
<body>
|
|
|
|
{{ partial "header.html" . }}
|
|
{{ block "main" . }}{{ end }}
|
|
{{ partial "extra_foot.html" . }}
|
|
{{ partial "footer.html" . }}
|
|
</body>
|
|
</html>
|