mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
65875dec78
* v0.2.18-lts: (22 commits) 🔖 Chore(release): 0.2.18-lts.5 📝 Docs: update chang log and docs 🔧 Chore: change the theme minimum supported Hugo versions above **0.110.0** 🔧 Chore: update default config in `hugo.toml` 🐛 Fix: active index of toc may result in error ✨ Feat: add hiddenFromRss param and front matter ⚡ Perf: preload some stylesheet 🔧 Chore: add Vercel config (#277) 🐛 Fix: fix logic error of lightgallery images rendering 📝 Docs: update the outputs configuration to avoid the following warnings in versions above Hugo 0.112.0 (resolve #354) 📝 Docs: update content license 🐛 Style: fix the emoji style of valine comment (resolve #376) ⚡ Perf: optimize featured image rendering 🔧 Chore: add decoding and referrerpolicy options for img plugin 🚸 Feat: change bilibili shortcode `muted` default value 🔖 Chore(release): 0.2.18-lts.4 📝 Docs: update change log for v0 ✨ Feat: add more options support for bilibili shortcode, e.g. `autoplay`, `muted` etc. (resolve #375) 🐛 Fix: disable encrypted articles from rendering to rss (fixed #374) 🐛 Fix: fix featured image path error in rss and show img tags in rss ...
49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
{{- $cdn := .Scratch.Get "cdn" | default dict -}}
|
|
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
|
|
|
|
{{- if not .Site.Params.app.noFavicon -}}
|
|
{{- with .Site.Params.app.svgFavicon -}}
|
|
<link rel="icon" href="{{ . }}">
|
|
{{- 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">
|
|
{{- with .Site.Params.app.iconColor -}}
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="{{ . }}">
|
|
{{- end -}}
|
|
{{- if eq .Site.Params.enablePWA true -}}
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
{{- if .Prev -}}
|
|
<link rel="prev" href="{{ .Prev.Permalink }}" />
|
|
{{- end -}}
|
|
{{- if .Next -}}
|
|
<link rel="next" href="{{ .Next.Permalink }}" />
|
|
{{- end -}}
|
|
|
|
{{- with .OutputFormats.Get "RSS" -}}
|
|
<link rel="alternate" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ $.Site.Title }}">
|
|
<link rel="feed" href="{{ .RelPermalink }}" type="application/rss+xml" title="{{ $.Site.Title }}">
|
|
{{- end -}}
|
|
|
|
{{- /* style.min.css */ -}}
|
|
{{- $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 -}}
|
|
|
|
{{- /* Font Awesome */ -}}
|
|
{{- $source := $cdn.fontawesomeFreeCSS | default "lib/fontawesome-free/all.min.css" -}}
|
|
{{- $options := dict "Source" $source "Fingerprint" $fingerprint "Preload" true -}}
|
|
{{- partial "plugin/style.html" $options -}}
|
|
|
|
{{- /* Animate.css */ -}}
|
|
{{- $source := $cdn.animateCSS | default "lib/animate/animate.min.css" -}}
|
|
{{- $options := dict "Source" $source "Fingerprint" $fingerprint "Preload" true -}}
|
|
{{- partial "plugin/style.html" $options -}}
|