completed all templates

This commit is contained in:
2023-08-08 17:45:26 +03:00
parent 51881e313b
commit dbd3aaf611
9 changed files with 188 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
{% macro meta(page) %}
<div class="post-meta">
<time datetime="{{ page.date }}">{{ page.date | date(format="%F") }}</time>
{% if page.taxonomies.tags %}
<span class="accent">⬡</span>
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
{%- if page.taxonomies.tags | length > 1 and loop.index != page.taxonomies.tags | length -%},{% endif %}
{% endfor %}
{% endif %}
</div>
{% endmacro meta %}
{% macro snippet(page) %}
<article>
<h2>
<a href="{{ page.permalink }}">{{ page.title }}</a>
</h2>
{{ self::meta(page=page) }}
{% if page.summary %}{{ page.summary | safe }}{% endif %}
<nav>
<a href="{{ page.permalink }}">Read More</a>
</nav>
</article>
{% endmacro snippet %}