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

meta.html « partials « layouts - github.com/humrochagf/colordrop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29365871ee2b04293438c15af45d0f0e2406cdb0 (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
<!-- Required meta tags always come first -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge" />

{{ if .Site.Params.gTagId }}
  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Params.gTagId }}"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', '{{ .Site.Params.gTagId }}');
  </script>
{{ end }}

<!-- Favicons -->
<link rel="icon" type="image/png" href="{{ "/img/favicon-32x32.png" | absURL }}" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ "/img/favicon-16x16.png" | absURL }}" sizes="16x16" />

<!-- SEO tags -->
<link rel="canonical" href="{{ .Permalink }}" />

{{ if .IsTranslated }}
  {{ range .Translations }}
    <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
  {{ end }}
{{ end }}

<!-- General -->
<meta name="description" content="{{ index .Params "description" | default .Site.Params.description }}" />
<meta name="author" content="{{ .Site.Params.author.name }}" />
<meta name="theme-color" content="#ffffff" />

<!-- Google+ -->
<meta itemprop="name" content="{{ .Title | humanize | title }}" />
<meta itemprop="description" content="{{ index .Params "description" | default .Site.Params.description }}" />
{{ if .Params.shareImage }}
  <meta itemprop="image" content="{{ .Params.shareImage | absURL }}" />
{{ else }}
  <meta itemprop="image" content="{{ .Site.Params.siteLogo | absURL }}" />
{{ end }}

<!-- Facebook -->
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Title | humanize | title }}" />
<meta property="og:description" content="{{ index .Params "description" | default .Site.Params.description }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:type" content="article" />
{{ if .Params.shareImage }}
  <meta property="og:image" content="{{ .Params.shareImage | absURL }}" />
{{ else }}
  <meta property="og:image" content="{{ .Site.Params.siteLogo | absURL }}" />
{{ end }}

<!-- Twitter -->
<meta name="twitter:url" content="{{ .Permalink }}" />
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:creator" content="@{{ .Site.Params.author.twitter }}" />
<meta name="twitter:title" content="{{ .Title | humanize | title }}" />
<meta name="twitter:description" content="{{ index .Params "description" | default .Site.Params.description }}" />
{{ if .Params.shareImage }}
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:image" content="{{ .Params.shareImage | absURL }}" />
{{ else }}
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:image" content="{{ .Site.Params.siteLogo | absURL }}" />
{{ end }}