LoveIt/layouts/partials/head.html

67 lines
3.1 KiB
HTML
Raw Normal View History

2019-08-04 15:53:35 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noodp" />
2019-08-24 14:25:05 +02:00
<meta name="Description" content="{{ .Params.description | default .Site.Params.description }}">
2020-01-31 15:53:04 +01:00
{{- with .Site.Params.google_verification -}}
2019-08-04 15:53:35 +02:00
<meta name="google-site-verification" content="{{ . }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Site.Params.bing_verification -}}
2019-08-04 15:53:35 +02:00
<meta name="msvalidate.01" content="{{ . }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Site.Params.yandex_verification -}}
2019-08-04 15:53:35 +02:00
<meta name="yandex-verification" content="{{ . }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Site.Params.pinterest_verification -}}
2019-08-04 15:53:35 +02:00
<meta name="p:domain_verify" content="{{ . }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- with .Site.Params.baidu_verification -}}
<meta name="baidu-site-verification" content="{{ . }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- if .PrevInSection -}}
2019-08-24 13:32:41 +02:00
<link rel="prev" href="{{ .PrevInSection.Permalink }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- if .NextInSection -}}
2019-08-04 15:53:35 +02:00
<link rel="next" href="{{ .NextInSection.Permalink }}" />
2020-01-31 15:53:04 +01:00
{{- end -}}
2019-08-04 15:53:35 +02:00
<link rel="canonical" href="{{ .Permalink }}" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
2019-08-04 15:53:35 +02:00
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
2020-01-31 15:53:04 +01:00
{{- with .OutputFormats.Get "RSS" -}}
2019-08-24 13:32:41 +02:00
<link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ $.Site.Title }}">
<link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ $.Site.Title }}">
2020-01-31 15:53:04 +01:00
{{- end -}}
2019-08-18 19:36:52 +02:00
{{- $share := .Params.share.enable | default .Site.Params.share.enable | eq true -}}
{{- if $share | and (.Params.Share.Twitter | default .Site.Params.Share.Twitter | eq true) -}}
{{- template "_internal/twitter_cards.html" . -}}
{{- end -}}
2019-08-05 15:15:01 +02:00
2020-01-31 15:53:04 +01:00
{{- partial "seo.html" . -}}
2019-08-05 15:15:01 +02:00
2020-02-02 07:43:29 +01:00
{{- $options := dict "targetPath" "css/style.min.css" "outputStyle" "compressed" "enableSourceMap" true -}}
{{- if fileExists "config/css/_custom.scss" -}}
{{- $options = dict "includePaths" (slice "config/css") | merge $options -}}
{{- $res := resources.Get "css/custom-style.scss" | toCSS $options -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- else -}}
{{- $res := resources.Get "css/style.scss" | toCSS $options -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}}
2020-01-31 15:53:04 +01:00
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.fontawesome_free_css -}}
{{- .Site.Params.cdn.fontawesome_free_css | safeHTML -}}
{{- else -}}
2020-02-02 07:43:29 +01:00
{{- $res := resources.Get "css/lib/fontawesome-free/all.min.css" -}}
2019-08-24 13:32:41 +02:00
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
2020-01-31 15:53:04 +01:00
{{- end -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.animate_css -}}
{{- .Site.Params.cdn.animate_css | safeHTML -}}
{{- else -}}
2020-02-02 07:43:29 +01:00
{{ $res := resources.Get "css/lib/animate/animate.min.css" -}}
2019-08-22 20:54:26 +02:00
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
2020-01-31 15:53:04 +01:00
{{- end -}}