2020-04-21 16:55:06 +02:00
|
|
|
{{- $cdn := .Scratch.Get "cdn" | default dict -}}
|
|
|
|
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
|
2020-02-14 14:09:21 +01:00
|
|
|
|
2020-04-26 19:19:23 +02:00
|
|
|
{{- if not .Site.Params.app.noFavicon -}}
|
|
|
|
{{- with .Site.Params.app.svgFavicon -}}
|
|
|
|
<link rel="icon" href="{{ . }}">
|
2020-04-26 17:58:15 +02:00
|
|
|
{{- else -}}
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
|
|
{{- end -}}
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
2020-04-26 19:19:23 +02:00
|
|
|
{{- with .Site.Params.app.iconColor -}}
|
2020-04-26 17:58:15 +02:00
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}">
|
|
|
|
{{- end -}}
|
|
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
|
|
{{- end -}}
|
2020-02-13 18:30:33 +01:00
|
|
|
|
2020-04-26 17:58:15 +02:00
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
2020-02-13 18:30:33 +01:00
|
|
|
{{- if .PrevInSection -}}
|
|
|
|
<link rel="prev" href="{{ .PrevInSection.Permalink }}" />
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .NextInSection -}}
|
|
|
|
<link rel="next" href="{{ .NextInSection.Permalink }}" />
|
|
|
|
{{- end -}}
|
|
|
|
|
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
|
|
|
|
2020-04-16 17:51:05 +02:00
|
|
|
{{- /* normalize.css */ -}}
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- $source := $cdn.normalizeCSS | default "lib/normalize/normalize.min.css" -}}
|
2020-04-16 17:51:05 +02:00
|
|
|
{{- $stylesheet := dict "source" $source "fingerprint" $fingerprint -}}
|
|
|
|
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|
|
|
|
|
|
|
|
{{- /* style.min.css */ -}}
|
|
|
|
{{- $stylesheet := dict "source" "css/style.template.scss" "fingerprint" $fingerprint -}}
|
2020-04-26 17:00:29 +02:00
|
|
|
{{- $targetPath := cond .Site.IsMultiLingual (printf "css/style.%s.min.css" .Language.Lang) "css/style.min.css" -}}
|
2020-04-27 19:38:22 +02:00
|
|
|
{{- $options := dict "targetPath" $targetPath "includePaths" (slice "config/css") "enableSourceMap" true -}}
|
2020-04-16 17:51:05 +02:00
|
|
|
{{- $stylesheet = dict "template" "style.scss" "context" . "toCSS" $options | merge $stylesheet -}}
|
|
|
|
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|
|
|
|
|
2020-02-24 10:53:08 +01:00
|
|
|
{{- /* Font Awesome */ -}}
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- $source := $cdn.fontawesomeFreeCSS | default "lib/fontawesome-free/all.min.css" -}}
|
2020-04-15 09:46:50 +02:00
|
|
|
{{- $stylesheet := dict "source" $source "fingerprint" $fingerprint -}}
|
|
|
|
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|
2020-02-06 17:10:00 +01:00
|
|
|
|
2020-02-24 10:53:08 +01:00
|
|
|
{{- /* Animate.css */ -}}
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- $source := $cdn.animateCSS | default "lib/animate/animate.min.css" -}}
|
2020-04-15 09:46:50 +02:00
|
|
|
{{- $stylesheet := dict "source" $source "fingerprint" $fingerprint -}}
|
|
|
|
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|