mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
3ffef8acb0
* 🔍 Refactor: add JSON feed support and refactor output formats build in FixIt Close #475 * 🚚 Feat: migrate index templates to layouts/_default folder and home.[name].html * 📝 Style(ignore): fix typo * 🚚 Chore: migrate index templates to default home templates * 🚚 Chore: migrate section templates to layouts/section folder * ✨ Feat: add JSON feed support for section pages (#475) * 🚧 Feat: add common template for JSON feed (#475) * 🚧 Feat: add JSON feed support for section and term list pages * 🚀 Chore: fix git stage error in update-version script * ⚡ Perf: add front matter hiddenFromFeed for JSON feed (#475) * 🔍 Feat: add tags attribute for JSON feed (#475) * ♻️ Refactor: refactor RSS feed templates Close #488 * 🚧 WIP: rename json-feed.html to json.html * 🚧 Feat: revert single.md * ⚡ Perf: enhance JSON feed 1.1 compatibility * ♻️ Refactor: refactor post author map getting * ✨ WIP: add featured image support in feed * 📝 Docs: update README and screenshot * 🔧 Chore: update changelog template * 🚧 WIP: add feed scoped config for section and list * 🔥 Feat: migrate JSON feed to hugo-fixit/hugo-json-feed Close hugo-fixit/hugo-json-feed#1 * 🚚 Feat: remove front matter hiddenFromRss and rssFullText, add front matter hiddenFromFeed
54 lines
2.3 KiB
HTML
54 lines
2.3 KiB
HTML
{{- $cdn := .Scratch.Get "cdn" | default dict -}}
|
|
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
|
|
{{- $title := printf "%s %s %s" .Title .Site.Params.titleDelimiter .Site.Title -}}
|
|
{{- if .IsHome -}}
|
|
{{- $title = site.Title -}}
|
|
{{- end -}}
|
|
|
|
{{- 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" type="text/html" href="{{ .Permalink }}" title="{{ $title }}" />
|
|
{{- with .Prev -}}
|
|
<link rel="prev" type="text/html" href="{{ .Permalink }}" title="{{ .Title }}" />
|
|
{{- end -}}
|
|
{{- with .Next -}}
|
|
<link rel="next" type="text/html" href="{{ .Permalink }}" title="{{ .Title }}" />
|
|
{{- end -}}
|
|
{{- range .AlternativeOutputFormats -}}
|
|
{{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink $title | safeHTML -}}
|
|
{{- end -}}
|
|
{{- with .OutputFormats.Get "feed" -}}
|
|
<link rel="alternate" type="application/feed+json" href="{{ .Permalink }}" title="{{ $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 -}}
|