This commit is contained in:
2024-12-20 17:01:50 +03:00
parent 3b7064a978
commit ff30caa19c
102 changed files with 5081 additions and 2541 deletions
+20 -20
View File
@@ -1,25 +1,25 @@
{% macro meta(page) %}
<div class="post-meta">
<time datetime="{{ page.date }}">{{ page.date | date(format="%B %d,%Y") }}</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 %}
<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 %}
<div class="accent">☕ {{ page.reading_time }} minutes 📝 {{ page.word_count }}</div>
</div>
{% 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>
<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 %}