2019-01-28 03:11:02 +03:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
|
|
|
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.Subtitle }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
|
|
|
<meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" />
|
2020-03-10 15:03:11 +03:00
|
|
|
<meta name="robots" content="noodp" />
|
2019-01-28 03:11:02 +03:00
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
|
|
|
2020-01-15 16:41:43 +03:00
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
|
2019-01-28 03:11:02 +03:00
|
|
|
<!-- Theme CSS -->
|
2019-01-29 12:47:50 +03:00
|
|
|
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">
|
|
|
|
{{ if (ne $.Site.Params.ThemeColor "orange") }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}">
|
2019-01-28 03:11:02 +03:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<!-- Custom CSS to override theme properties (/static/style.css) -->
|
2019-06-15 16:55:40 +03:00
|
|
|
{{ if (fileExists "static/style.css") -}}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link rel="stylesheet" href="{{ "style.css" | absURL }}">
|
2019-06-15 16:55:40 +03:00
|
|
|
{{- end }}
|
2019-01-28 03:11:02 +03:00
|
|
|
|
|
|
|
<!-- Icons -->
|
2019-01-29 12:47:50 +03:00
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}">
|
2019-03-13 04:40:07 +03:00
|
|
|
{{ if isset $.Site.Params "favicon" }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link rel="shortcut icon" href="{{ $.Site.Params.favicon | absURL }}">
|
2019-03-13 04:40:07 +03:00
|
|
|
{{ else }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link rel="shortcut icon" href="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}">
|
2019-01-28 03:11:02 +03:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<!-- Twitter Card -->
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta name="twitter:card" content="summary" />
|
2020-03-18 14:24:24 +03:00
|
|
|
{{ if (isset $.Site.Params.Twitter "site") }}
|
2020-03-18 14:20:14 +03:00
|
|
|
<meta name="twitter:site" content="{{ $.Site.Params.Twitter.site }}" />
|
2020-03-16 14:05:35 +03:00
|
|
|
{{ end }}
|
2020-03-20 12:21:20 +03:00
|
|
|
<meta name="twitter:creator" content="{{ if .IsHome }}{{ $.Site.Params.Twitter.creator }}{{ else if isset .Params "authortwitter" }}{{ .Params.authorTwitter }}{{ else }}{{ .Params.Author }}{{ end }}" />
|
2019-01-28 03:11:02 +03:00
|
|
|
|
|
|
|
<!-- OG data -->
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta property="og:locale" content="{{ $.Site.Language.Lang }}" />
|
|
|
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
|
|
|
<meta property="og:title" content="{{ if .IsHome }}{{ $.Site.Title }}{{ else }}{{ .Title }} :: {{ $.Site.Title }}{{ end }}">
|
2020-03-29 18:07:41 +03:00
|
|
|
<meta property="og:description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
|
|
<meta property="og:site_name" content="{{ .Title }}" />
|
2020-04-03 12:59:22 +03:00
|
|
|
{{ if and (ne .IsHome) (isset .Params "cover") }}
|
|
|
|
<meta property="og:image" content="{{ .Param "cover" | absURL }}">
|
|
|
|
{{ else }}
|
|
|
|
{{ if isset $.Site.Params "favicon" }}
|
|
|
|
<meta property="og:image" content="{{ $.Site.Params.favicon | absURL }}">
|
|
|
|
{{ else }}
|
|
|
|
<meta property="og:image" content="{{ printf "img/favicon/%s.png" $.Site.Params.ThemeColor | absURL }}">
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta property="og:image:width" content="2048">
|
|
|
|
<meta property="og:image:height" content="1024">
|
2020-03-10 15:03:11 +03:00
|
|
|
{{ range .Params.categories }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta property="article:section" content="{{ . }}" />
|
|
|
|
{{ end }}
|
2020-03-10 15:03:11 +03:00
|
|
|
{{ if isset .Params "date" }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<meta property="article:published_time" content="{{ time .Date }}" />
|
|
|
|
{{ end }}
|
2019-01-28 03:11:02 +03:00
|
|
|
|
|
|
|
<!-- RSS -->
|
2019-05-24 10:36:06 +03:00
|
|
|
{{ with .OutputFormats.Get "RSS" }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
|
2019-01-28 03:11:02 +03:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<!-- JSON Feed -->
|
2019-05-24 10:36:06 +03:00
|
|
|
{{ with .OutputFormats.Get "json" }}
|
2020-03-10 15:08:33 +03:00
|
|
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
|
2019-01-28 03:11:02 +03:00
|
|
|
{{ end }}
|
2019-02-26 11:35:20 +03:00
|
|
|
|
2019-03-05 01:20:48 +03:00
|
|
|
<!-- Extended head section-->
|
|
|
|
{{ partial "extended_head.html" . }}
|