Welcome to mirror list, hosted at ThFree Co, Russian Federation.

head.html « partials « layouts - github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd511747e487497f9702f3a6d77b3b0baa87b7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<head>
    <meta charset='utf-8'>
	<meta name='viewport' content='width=device-width, initial-scale=1'>
	<meta name='description' content='{{ chomp (partial "data/description" . | plainify ) }}'>
    
	<title>{{ (trim (partial "data/title" .) "\n" ) | safeHTML }}</title>
	<link rel='canonical' href='{{ .Permalink }}'>

    {{ partial "head/style.html" . }}
    {{ partial "head/script.html" . }}
    
    {{ partial "head/opengraph/include.html" . }}

    {{ range .AlternativeOutputFormats -}}
        <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
    {{ end -}}

    {{- if .Site.Params.favicon -}}
        {{- $logo := resources.Get .Site.Params.favicon -}}
        {{- $favicon := $logo.Resize "32x" -}}
        <link rel="icon" type="image/png" href="{{ $favicon.RelPermalink }}" />
    {{- end -}}

    {{ partial "head/custom.html" . }}
</head>