mirror of
https://github.com/welpo/tabi.git
synced 2026-01-11 07:47:47 +01:00
♻️ refactor: split macros.html in different files
Clearer macros format.
This commit is contained in:
parent
3d7a662ac8
commit
3aa22cb3ad
18 changed files with 233 additions and 256 deletions
16
templates/macros/list_title.html
Normal file
16
templates/macros/list_title.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% macro list_title(pages, tag_name=false) %}
|
||||
{% if tag_name %}
|
||||
<h1 class="title-container">Entries tagged - "{{ term.name }}"</h1>
|
||||
{% else %}
|
||||
<h1 class="page-title">All articles</h1>
|
||||
{% endif %}
|
||||
|
||||
<ul class="posts">
|
||||
{% for page in pages %}
|
||||
<li class="post">
|
||||
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
||||
<span class="meta">{{ macros_format_date::format_date(date=page.date) }}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro list_title %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue