mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 07:18: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
39 lines
1.4 KiB
HTML
39 lines
1.4 KiB
HTML
{{- $author := partial "function/get-author-map.html" .Params.author -}}
|
|
|
|
<meta name="author" content="{{ $author.name }}">
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage | and .Summary }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
|
|
|
{{- $keywords := .Keywords -}}
|
|
{{- if not $keywords -}}
|
|
{{- if .IsPage | and .Params.tags -}}
|
|
{{- $keywords = .Params.tags -}}
|
|
{{- else -}}
|
|
{{- $keywords = .Site.Params.keywords -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- with $keywords -}}
|
|
<meta name="keywords" content='{{ delimit . ", " }}'>
|
|
{{- end -}}
|
|
|
|
{{- template "_internal/schema.html" . -}}
|
|
{{- template "_internal/opengraph.html" . -}}
|
|
{{- template "_internal/twitter_cards.html" . -}}
|
|
{{- with .Site.Params.social.Twitter -}}
|
|
<meta name="twitter:creator" content="@{{ . }}" />
|
|
{{- end -}}
|
|
|
|
<meta name="application-name" content="{{ .Site.Params.app.title | default .Site.Title }}">
|
|
<meta name="apple-mobile-web-app-title" content="{{ .Site.Params.app.title | default .Site.Title }}">
|
|
|
|
{{- with .Site.Params.app.themeColor -}}
|
|
{{- $color := . -}}
|
|
{{- if ne (len $color) 2 -}}
|
|
{{- $color = dict "light" . "dark" . -}}
|
|
{{- end -}}
|
|
<meta name="theme-color" data-light="{{ $color.light }}" data-dark="{{ $color.dark }}" content="{{ $color.light }}">
|
|
{{- end -}}
|
|
|
|
{{- with .Site.Params.app.tileColor -}}
|
|
<meta name="msapplication-TileColor" content="{{ . }}">
|
|
{{- end -}}
|