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

head.html « partials « layouts - github.com/wayjam/hugo-theme-mixedpaper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe5371fe4f2621cf0c23ad31fc239c33ef26df33 (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
<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="format-detection" content="telephone=no" />

  <title>
    {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}
  </title>

  <!-- Icons -->
	<link rel="apple-touch-icon" sizes="180x180" href="{{ `apple-touch-icon.png` | relURL }}" />
	<link rel="icon" type="image/png" sizes="32x32" href="{{ `favicon-32x32.png` | relURL }}" />
	<link rel="icon" type="image/png" sizes="16x16" href="{{ `favicon-16x16.png` | relURL }}" />
	<link rel="manifest" href="{{ `manifest.json` | relURL }}" />
  <meta name="theme-color" content="#ffffff" />

  <!-- Reset -->
  <link
    rel="stylesheet"
    href="https://unpkg.com/modern-normalize@0.6.0/modern-normalize.css"
  />

  <!-- Use Hugo Pipes to process the Sass file (convert to CSS, minify, and add a hash) -->
  {{ $base_style := resources.Get "css/basic.scss" | toCSS | minify | fingerprint }}
	{{ $main_style := resources.Get "css/main.scss" | toCSS | minify | fingerprint }}
  <link rel="stylesheet" href="{{ $base_style.Permalink }}" />
  <link rel="stylesheet" href="{{ $main_style.Permalink }}" />

  {{ with .OutputFormats.Get "RSS" }}
		{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
	{{ end }}
	{{ if not .Site.IsServer }}
		{{ template "_internal/google_analytics.html" . }}
	{{ end }}
</head>