feat(serie): add serie's posts list link to title

As a serie's content can be important in size, it can be better to directly jump to the list of articles in the serie.
This commit is contained in:
ZzMzaw 2024-07-26 18:33:56 +02:00
parent 15c0696bfa
commit 093b9140a5
4 changed files with 13 additions and 1 deletions

View file

@ -64,6 +64,7 @@ load_comments = "Load comments"
# Serie.
serie = "SERIE"
serie_go_to_posts = "Go to serie's posts"
serie_posts = "Serie's posts:"
page_of_a_serie = "This article is part of the serie: "

View file

@ -64,6 +64,7 @@ load_comments = "Afficher les commentaires"
# Serie.
serie = "SERIE"
serie_go_to_posts = "Aller aux articles de la série"
serie_posts = "Articles de la série :"
page_of_a_serie = "Cet article fait partie de la série : "

View file

@ -68,6 +68,12 @@
}
}
#serie-title {
#go-to-button {
float: right;
}
}
.serielist-title {
font-size: 1.2rem;
}

View file

@ -12,8 +12,12 @@
{% endif -%}
<article>
<div>
<div id="serie-title">
<span class="title-label">{{ macros_translate::translate(key="serie", default="SERIE", language_strings=language_strings) }}</span>
{%- set serie_go_to_posts = macros_translate::translate(key="serie_go_to_posts", default="Go to serie's posts", language_strings=language_strings) -%}
<a id="go-to-button" href="#posts-list" class="no-hover-padding" title="{{ serie_go_to_posts }}">
{{ serie_go_to_posts }}
</a>
{{ macros_page_header::page_header(title=section.title) }}
</div>