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

head.html « partials « layouts - github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 49e1619cd7408ecb938cdaafa6195675eeefb431 (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
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  
  {{ .Hugo.Generator }}

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

  {{ $appleTouchIcon := "apple-touch-icon.png" }}
  <link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon | absURL }}">

  {{ $favicon32x32 := "favicon-32x32.png" }}
  <link rel="icon" type="image/png" sizes="32x32" href="{{ $favicon32x32 | absURL }}">

  {{ $favicon16x16 := "favicon-16x16.png" }}
  <link rel="icon" type="image/png" sizes="16x16" href="{{ $favicon16x16 | absURL }}">

  {{ $siteWebmanifest := "site.webmanifest" }}
  <link rel="manifest" href="{{ $siteWebmanifest | absURL }}">

  {{ $safariPinnedTab := "safari-pinned-tab.svg" }}
  <link rel="mask-icon" href="{{ $safariPinnedTab | absURL }}" color="{{ .Site.Params.faviconSafariPinnedTabColor }}">

  <meta name="msapplication-TileColor" content="{{ .Site.Params.faviconMsApplicationTileColor }}">

  <meta name="theme-color" content="{{ .Site.Params.faviconThemeColor }}">

  {{ $bootstrapCss := "css/bootstrap.min.css" }}
  <link rel="stylesheet" href="{{ $bootstrapCss | absURL }}" />

  {{ if .IsHome }}
  {{ $homepage := "" }}
  {{ with .Site.Menus.nav }}
    {{ range first 1 . }}
      {{ $homepage = .Name }}
    {{ end }}
  {{ end }}
  <title>{{ $homepage }} | {{ .Site.Title }}</title>
  {{ else }}
  <title>{{ .Title }} | {{ .Site.Title }}</title>
  {{ end }}

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