[THEME] Add two categories, based on article categorie
This commit is contained in:
parent
9da2a99bc9
commit
fde0bdf421
2 changed files with 23 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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 -}}
|
||||||
{{- .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 -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</section>
|
</section>
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue