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

general.html « head « partials « layouts - github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13907b8a67140a226ec054cdad88e9ceee0d89c9 (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
{{ hugo.Generator }}

<!-- Google Analytics -->
{{ if hugo.IsProduction }}
  {{ template "_internal/google_analytics_async.html" . }}
{{ end }}

<!-- cf. https://github.com/joshbuchea/HEAD -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimal-ui">

<!-- Force IE 8/9/10 to use its latest rendering engine -->
<meta http-equiv="x-ua-compatible" content="ie=edge">

<!-- Android -->
<!-- Add to home screen and run web page in full-screen mode -->
<meta name="mobile-web-app-capable" content="yes">

<!-- iOS -->
<!-- Add to home screen and run web page in full-screen mode -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- the style of the status bar -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Disable automatic detection and formatting of possible phone numbers -->
<meta name="format-detection" content="telephone=no">

<!-- Allows control over how referrer information is passed -->
<meta name="referrer" content="no-referrer">

<!-- Control the behavior of search engine crawling and indexing -->
<meta name="robots" content="index,follow"><!-- All Search Engines -->
<meta name="googlebot" content="index,follow"><!-- Google Specific -->

<!-- favicon, home icon -->
{{ partial "head/favicon" . }}

<!-- Feed, RSS -->
<link rel="alternate" type="application/rss+xml" href="{{ .Site.RSSLink }}" title="{{ with .Site.Title }}{{ . }}{{ end }}">

{{ $title := "" }}
{{ with $.Title }}
  {{ $title = . }}
{{ else }}
  {{ $firstH1 := findRE "<h1.*?>(.|\n)*?</h1>" $.Content 1 }}
  {{ range first 1 $firstH1 }}
    {{ $title = . | plainify }}
  {{ end }}
{{ end }}

{{ if $.IsHome }}
  {{ $title = $.Site.Params.Title | safeHTML }}
{{ end }}
<title>{{ $title }}</title>
<meta name="author" content="{{ with .Site.Params.author }}{{ . }}{{ end }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">

<!-- Open Graph Protocol (OGP) -->
{{ partial "head/ogp" . }}

{{ with .Page.Params.canonicalURL }}
<link rel="canonical" href="{{ . | safeURL }}">
{{ end }}