[THEME] Add two categories, based on article categorie

This commit is contained in:
Gregory Trolliet 2023-09-08 14:19:38 +02:00
parent 9da2a99bc9
commit fde0bdf421
2 changed files with 23 additions and 2 deletions

View file

@ -10,6 +10,13 @@ other = "tags"
one = "archive"
other = "archives"
[shows]
one = "spectacle"
other = "spectacles"
[movies]
one = "film"
other = "films"
[reading_time]
one = "Une minute de lecture"
other = "{{ .Count }} minutes de lecture"

View file

@ -10,15 +10,29 @@
{{ i18n "articles" | title }}
</h1>
</header>
<h2 class="list-subtitle">
{{ i18n "shows" | title }}
</h2>
<div class="archives-list">
{{- range .Paginator.Pages -}}
{{- .Render "li" -}}
{{ if in .Params.categories "Spectacle" }}
{{- .Render "li" -}}
{{- end -}}
{{- end -}}
</div>
<h2 class="list-subtitle">
{{ i18n "movies" | title }}
</h2>
<div class="archives-list">
{{- range .Paginator.Pages -}}
{{ if in .Params.categories "Film" }}
{{- .Render "li" -}}
{{- end -}}
{{- end -}}
</div>
</article>
{{ partial "pagination.html" . }}
</section>
{{ partial "footer.html" . }}
</main>
</body>
</html>