[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" one = "archive"
other = "archives" other = "archives"
[shows]
one = "spectacle"
other = "spectacles"
[movies]
one = "film"
other = "films"
[reading_time] [reading_time]
one = "Une minute de lecture" one = "Une minute de lecture"
other = "{{ .Count }} minutes de lecture" other = "{{ .Count }} minutes de lecture"

View file

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