Changed the taxonomy page so it looks like the list page and added some parametrization:

list_article_class
list_main_class
list_section_class
list_post_summary_class
taxonomy_text_copy
list_post_summary_with_image
This commit is contained in:
Emiliano Tortorella 2018-11-14 22:06:44 -04:00
parent 55e62448dd
commit dce0d1faae

View File

@ -1,16 +1,18 @@
{{ define "main" }} {{ define "main" }}
<article class="cf pa3 pa4-m pa4-l"> <article class="{{ .Site.Params.list_article_class | default "cf pa3 pa4-m pa4-l" }}">
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray"> <main class="{{ .Site.Params.list_main_class | default "cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray" }}">
<p>Below you will find pages that utilize the taxonomy term “{{ .Title }}”</p> {{ .Site.Params.taxonomy_text_copy | default "Below you will find pages that utilize the taxonomy term" }} “{{ .Title }}”
</div> </main>
</article> <section class="{{ .Site.Params.list_section_class | default "flex-ns flex-wrap justify-around mt5" }}">
<div class="mw8 center"> {{ range .Paginator.Pages }}
<section class="flex-ns flex-wrap justify-around mt5"> <div class="{{ .Site.Params.list_post_summary_class | default "relative w-100 w-30-l mb4 bg-white" }}">
{{ range .Pages }} {{ if .Site.Params.list_post_summary_with_image }}
<div class="relative w-100 mb4 bg-white"> {{- partial "summary-with-image.html" . -}}
{{ partial "summary.html" . }} {{ else }}
</div> {{- partial "summary.html" . -}}
{{ end }} {{ end }}
</section> </div>
</div> {{ end }}
</section>
{{- template "_internal/pagination.html" . -}}
{{ end }} {{ end }}