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

head.html « common « sections « partials « layouts - github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b28165845eb1780d0d03317c048ad2550974034d (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<head>
  <meta charset="utf-8" />
  {{/* TODO(bep) app id */}}
  <link
    rel="preconnect"
    href="https://BH4D9OD16A-dsn.algolia.net"
    crossorigin />

  {{/* TODO1 self host https://fonts.google.com/specimen/Mulish?preview.text_type=custom */}}
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link
    href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap"
    rel="stylesheet" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
  <title>
    {{ block "title" . }}
      {{ with .Title }}{{ . }} |{{ end }}{{ .Site.Title }}
    {{ end }}
  </title>

  <meta name="viewport" content="width=device-width,minimum-scale=1" />
  {{ hugo.Generator }}

  {{ if hugo.IsProduction }}
    <meta name="robots" content="index, follow" />
  {{ else }}
    <meta name="robots" content="noindex, nofollow" />
  {{ end }}

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

  {{/* TODO1 check usage $.Scratch.Set "stylesheet" . */}}

  {{/* styles */}}
  {{ $options := dict "inlineImports" true }}
  {{ $styles := resources.Get "css/styles.css" }}
  {{ $styles = $styles | resources.PostCSS $options }}
  {{ if  hugo.IsProduction }}
    {{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
    <link
      href="{{ $styles.RelPermalink }}"
      rel="stylesheet"
      integrity="{{ .Data.Integrity }}"
      crossorigin="anonymous" />
  {{ else }}
    <link
      href="{{ $styles.RelPermalink }}"
      rel="stylesheet"
      crossorigin="anonymous" />
  {{ end }}


  <style>
    [x-cloak] {
      visibility: hidden;
    }
  </style>

  <noscript>
    <style>
      .hide-if-no-js {
        display: none;
      }
    </style>
  </noscript>

  <meta
    name="description"
    content="{{ with .Description }}
      {{ . }}
    {{ else }}
      {{ with .Site.Params.description }}{{ . }}{{ end }}
    {{ end }}
    " />

  {{ block "scripts" . }}
    {{/*  */}}
  {{ end }}

  {{ partialCached "jslibs/turbo/script-src.html" "-" }}
  {{ partialCached "helpers/script-src.html" (dict "js" (resources.Get "js/main/index.js") "loadAttribute" "defer") "js/main/index.js" }}
  {{ partial "site-manifest.html" . }}
  {{- partial "head-additions.html" . -}}
  {{- template "_internal/opengraph.html" . -}}
  {{- template "_internal/schema.html" . -}}
  {{- template "_internal/twitter_cards.html" . -}}

  {{ if hugo.IsProduction }}
    {{ partial "gtag" . }}
  {{ end }}

</head>