🎨 Finish archives page coding.

This commit is contained in:
凡梦星尘
2022-06-07 18:16:40 +08:00
parent 517ddcdf84
commit 168fb20cbb
24 changed files with 184 additions and 26 deletions

View File

@@ -1,8 +1,8 @@
{{- define "main_class" }}index{{- end }}
{{- define "main_inner_class" }}index posts-expand{{- end }}
{{- define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- range $paginator.Pages }}
{{ partial "post_content.html" (dict "ctx" . "IsHome" true) }}
{{ partial "post/index.html" (dict "ctx" . "IsHome" true) }}
{{- end }}
{{- partial "partials/pagination.html" . }}
{{- end }}