2020-04-21 22:55:06 +08:00
|
|
|
{{- $cdn := .Scratch.Get "cdn" | default dict -}}
|
|
|
|
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
|
2020-02-14 21:09:21 +08:00
|
|
|
|
2020-04-27 01:19:23 +08:00
|
|
|
{{- if not .Site.Params.app.noFavicon -}}
|
|
|
|
{{- with .Site.Params.app.svgFavicon -}}
|
|
|
|
<link rel="icon" href="{{ . }}">
|
2020-04-26 23:58:15 +08: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-27 01:19:23 +08:00
|
|
|
{{- with .Site.Params.app.iconColor -}}
|
2020-04-26 23:58:15 +08:00
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}">
|
|
|
|
{{- end -}}
|
|
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
|
|
{{- end -}}
|
2020-02-14 01:30:33 +08:00
|
|
|
|
2020-04-26 23:58:15 +08:00
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
2020-02-14 01:30:33 +08:00
|
|
|
{{- if .PrevInSection -}}
|
|
|
|
<link rel="prev" href="{{ .PrevInSection.Permalink }}" />
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .NextInSection -}}
|
|
|
|
<link rel="next" href="{{ .NextInSection.Permalink }}" />
|
|
|
|
{{- end -}}
|
|
|
|
|
2020-01-31 22:53:04 +08:00
|
|
|
{{- with .OutputFormats.Get "RSS" -}}
|
2019-08-24 19:32:41 +08: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 22:53:04 +08:00
|
|
|
{{- end -}}
|
2019-08-19 01:36:52 +08:00
|
|
|
|
2020-04-16 23:51:05 +08:00
|
|
|
{{- /* style.min.css */ -}}
|
2022-05-14 02:28:35 +08:00
|
|
|
{{- $options := dict "Source" "css/style.scss" "Fingerprint" $fingerprint -}}
|
|
|
|
{{- $toCSS := dict "targetPath" "css/style.min.css" "enableSourceMap" true -}}
|
|
|
|
{{- $options = dict "Context" . "ToCSS" $toCSS | merge $options -}}
|
|
|
|
{{- partial "plugin/style.html" $options -}}
|
2020-04-16 23:51:05 +08:00
|
|
|
|
2020-02-24 17:53:08 +08:00
|
|
|
{{- /* Font Awesome */ -}}
|
2020-04-21 22:55:06 +08:00
|
|
|
{{- $source := $cdn.fontawesomeFreeCSS | default "lib/fontawesome-free/all.min.css" -}}
|
2022-05-14 02:28:35 +08:00
|
|
|
{{- $options := dict "Source" $source "Fingerprint" $fingerprint "Preload" true -}}
|
|
|
|
{{- partial "plugin/style.html" $options -}}
|
2020-02-07 00:10:00 +08:00
|
|
|
|
2020-02-24 17:53:08 +08:00
|
|
|
{{- /* Animate.css */ -}}
|
2020-04-21 22:55:06 +08:00
|
|
|
{{- $source := $cdn.animateCSS | default "lib/animate/animate.min.css" -}}
|
2022-05-14 02:28:35 +08:00
|
|
|
{{- $options := dict "Source" $source "Fingerprint" $fingerprint "Preload" true -}}
|
|
|
|
{{- partial "plugin/style.html" $options -}}
|