mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-07 05:18:40 -04:00
36 lines
No EOL
1.1 KiB
HTML
36 lines
No EOL
1.1 KiB
HTML
{% macro tags(page) %}
|
|
{% if page.taxonomies %}{% if page.taxonomies.tags %}
|
|
{% for tag in page.taxonomies.tags %}
|
|
{% set url = get_taxonomy_url(kind="tags", name=tag, lang=page.lang) %}
|
|
• <a href = "{{url}}">#{{tag}}</a>
|
|
{% endfor %}
|
|
{% endif %}{% endif %}
|
|
{% endmacro %}
|
|
|
|
|
|
{% macro excerpt(page) %}
|
|
<article class="excerpt">
|
|
<h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
|
|
<p><time datetime="{{ page.date }}">{{page.date | date(format="%b %d, %Y")}}</time>{{self::tags(page=page)}}</p>
|
|
<div class="description">
|
|
{{page.description | markdown | safe}}
|
|
</div>
|
|
<a href="{{ page.permalink }}">Read more -></a>
|
|
</article>
|
|
{% endmacro %}
|
|
|
|
|
|
{% macro page_link(path) %}
|
|
{% set p = get_page(path=path) %}
|
|
<a href="{{ p.permalink }}">{{ p.title }}</a>
|
|
{% if p.date %}
|
|
<time datetime="{{ p.date }}">{{ p.date | date(format="%b %d, %Y") }}</time>
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
{% macro page_title(page) %}
|
|
<div class="title">
|
|
<h1>{{ page.title }}</h1>
|
|
<p><time>{{page.date}}</time>{{self::tags(page=page)}}</p>
|
|
</div>
|
|
{% endmacro %} |