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

head.html « partials « layouts - github.com/VVelox/hugo-dusky-neon-potato.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 488b7e356744d91cfe121c4f82e7eb101f28881e (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
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
  {{ with .Title | default .Site.Title }}
  <title>{{ . }}</title>
  <meta property="og:title" content="{{ . }}" />
  <meta name="twitter:title" content="{{ . }}" />
  {{ end }}

  {{ with .Description | default .Site.Params.subtitle }}
  <meta name="description" content="{{ . }}">
  <meta property="og:description" content="{{ . }}">
  <meta name="twitter:description" content="{{ . | truncate 200 }}">
  {{ end }}

  <meta name="author" content="{{ .Site.Params.author }}"/>
  <meta property="og:site_name" content="{{ .Site.Title }}" />
  <meta property="og:url" content="{{ .Permalink }}" />

  {{ with .Params.thumbnail }}
  <meta property="og:image" content="{{ . | absURL }}" />
  <meta name="twitter:image" content="{{ . | absURL }}" />
  {{ end }}
  <meta name="twitter:card" content="summary" />

  {{ with .Site.Params.twitter }}
  <meta name="twitter:site" content="@{{ . }}" />
  <meta name="twitter:creator" content="@{{ . }}" />
  {{ end }}

  {{ if .IsPage }}
  <meta property="og:type" content="article" />
  {{ with .Site.Params.facebook }}
  <meta property="og:article:author" content="https://facebook.com/{{ . }}" />
  {{ end }}
  {{ else }}
  <meta property="og:type" content="website" />
  {{ end }}
  <!-- Hugo Version number -->
  {{ .Hugo.Generator -}}
  {{ if .Site.Params.FontSheetUse }}
    <link href="{{ .Site.Params.FontSheet | default "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" }}" rel="stylesheet">
  {{- end -}}
  <link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
  <style type="text/css">
  {{ partial "theme-colors.css" . | safeCSS }}
  </style>
  {{- with .Site.Params.favicon }}
  <link rel='icon' type='image/x-icon' href="{{ . | absURL }}" />
  {{- end -}}
  {{ if eq .URL "/" }}
  <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
  {{ end }}
  <script type="text/javascript" src="{{ .Site.BaseURL }}/js/bundle.js"></script>
  {{ if .Params.sort_tables }}
  <script type="text/javascript" src="{{ .Site.BaseURL }}/js/sorttable.js"></script>
  {{ end }}
  {{ if .Params.graphing }}
  <script type="text/javascript" src="{{ .Site.BaseURL }}/js/c3.min.js"></script>
  <script type="text/javascript" src="{{ .Site.BaseURL }}/js/d3.min.js"></script>
  {{ end }}
  {{ with .Params.page_refresh }}
  <meta http-equiv="refresh" content="{{.}}">
  {{ end }}
  {{ partial "head_custom.html" . }}
</head>