🏗️ Finish post copy right widget coding.

This commit is contained in:
凡梦星尘
2022-06-03 22:37:33 +08:00
parent 5d1b38416e
commit fa5195c8a2
19 changed files with 408 additions and 171 deletions

View File

@@ -1,10 +1,8 @@
{{- define "main_class" }}index{{- end }}
{{- define "main" }}
{{/* TODO IsHome */}}
{{- print "Get IsHome value from scratch before paginate: " (.Scratch.Get "IsHome") }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- range $paginator.Pages }}
{{ partial "post_content.html" . }}
{{ partial "post_content.html" (dict "ctx" . "IsHome" true) }}
{{- end }}
{{- partial "partials/pagination.html" . }}
{{- end }}