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
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
{{- define "title" -}}
|
|
{{- .Site.Title -}}
|
|
{{- if .Site.Params.indexWithSubtitle | and .Site.Params.header.subtitle.name -}}
|
|
{{- printf " - %v" .Site.Params.header.subtitle.name -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- define "content" -}}
|
|
{{- $params := partial "function/params.html" -}}
|
|
{{- $profile := .Site.Params.home.profile -}}
|
|
{{- $posts := .Site.Params.home.posts -}}
|
|
|
|
<div class="page home{{ if ne $posts.enable false }} posts{{ end }}">
|
|
{{- /* Profile */ -}}
|
|
{{- if ne $profile.enable false -}}
|
|
{{- partial "home/profile.html" . -}}
|
|
{{- end -}}
|
|
|
|
{{- /* Content */ -}}
|
|
{{- if .Content -}}
|
|
<div class="single">
|
|
<div class="content" id="content">
|
|
{{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
|
|
</div>
|
|
</div>
|
|
{{- end -}}
|
|
|
|
{{- /* Posts */ -}}
|
|
{{- if ne $posts.enable false | and .Site.RegularPages -}}
|
|
{{- /* Paginate */ -}}
|
|
{{- $pages := .Scratch.Get "mainSectionPages" -}}
|
|
{{- if .Site.Params.page.hiddenFromHomePage -}}
|
|
{{- $pages = where $pages "Params.hiddenfromhomepage" false -}}
|
|
{{- else -}}
|
|
{{- $pages = where $pages "Params.hiddenfromhomepage" "!=" true -}}
|
|
{{- end -}}
|
|
{{- with $posts.paginate | default .Site.Params.paginate -}}
|
|
{{- $pages = $.Paginate $pages . -}}
|
|
{{- else -}}
|
|
{{- $pages = .Paginate $pages -}}
|
|
{{- end -}}
|
|
{{- range $pages.Pages -}}
|
|
{{- .Render "summary" -}}
|
|
{{- end -}}
|
|
{{- partial "paginator.html" . -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|