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

metas.html « base « partials « layouts - github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d466772c0d29bebf53220a506591dc46f902f1bf (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
70
71
72
73
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">

{{ if .Description }}
<meta name="description" content="{{ .Description }}" />
{{ else }}
<meta name="description" content="{{ .Site.Params.description }}" />
{{ end }}
<meta name="keywords" content="{{ if .Keywords }}{{ range .Keywords }}{{ . }}, {{ end }}{{else if isset .Params "tags" }}{{ range .Params.tags }}{{ . }}, {{ end }}{{end}}">
{{ with .Site.Params.googleplus }}
<link rel="author" href="http://plus.google.com/+{{ . }}">
{{ end }}

<meta property="og:title" content="{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .Site.Title }} {{ end }}">
<meta property="og:site_name" content="{{ .Site.Title }}"/>
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:locale" content="{{ .Site.LanguageCode }}">

{{ if not .IsPage }}
<meta property="og:type" content="website" />
{{ else }}
<meta property="og:type" content="article" />
<meta property="og:description" content="{{ .Description }}"/>
<meta property="og:article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />
<meta property="og:article:modified_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}" />

  {{ if .Keywords }}
    {{ range .Keywords }}
<meta property="og:article:tag" content="{{ . }}">
    {{ end }}
  {{ else if isset .Params "tags" }}
    {{ range .Params.tags }}
<meta property="og:article:tag" content="{{ . }}">
    {{ end }}
  {{ end }}

  {{ if ne .Site.Params.twitter "" }}
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ .Description }}" />
<meta name="twitter:url" content="{{ .Permalink }}" />
<meta name="twitter:domain" content="{{ .Site.BaseURL }}">
  {{ end }}

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Article",
    "headline": "{{ .Title }}",
    "author": {
      "@type": "Person",
      "name": "http://profiles.google.com/+{{ .Site.Params.googleplus }}?rel=author"
    },
    "datePublished": "{{ .Date.Format "2006-01-02" }}",
    "description": "{{ .Description }}",
    "wordCount": {{ .WordCount }}
  }
</script>
{{ end }}

{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
<link rel="canonical" href="{{ .Permalink }}" />

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ .Site.BaseURL }}touch-icon-144-precomposed.png">
<link href="{{ .Site.BaseURL }}favicon.ico" rel="icon">

{{ .Hugo.Generator }}