mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
🐛 fix: link 'All posts' to proper section (#295)
Co-authored-by: Daniel Kessler (a.k.a. Dalker) <daniel.kessler@dalker.org> Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
07bd0e17ea
commit
9249d9fbbe
2 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{% macro list_posts(posts, max, language_strings="") %}
|
||||
{% macro list_posts(posts, max, language_strings="", section_path="blog") %}
|
||||
|
||||
<div class="bloglist-container">
|
||||
{% for post in posts %}
|
||||
|
@ -46,7 +46,7 @@
|
|||
{% if not loop.last %}
|
||||
{% if loop.index == max %}
|
||||
<div class="all-posts">
|
||||
<a href="{{ get_url(path="blog", lang=lang) }}/">{{ macros_translate::translate(key="all_posts", default="All posts", language_strings=language_strings) }} <span class="arrow">⟶</span></a>
|
||||
<a href="{{ get_url(path=section_path, lang=lang) }}/">{{ macros_translate::translate(key="all_posts", default="All posts", language_strings=language_strings) }} <span class="arrow">⟶</span></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue