mikaela.github.io/_layouts/post.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2014-12-29 18:35:21 +01:00
---
layout: default
---
2023-02-22 19:28:38 +01:00
{% if post.tags.size > 0 %} {% capture tags_content %}Posted with {% if
post.tags.size == 1 %}<i class="fa fa-tag"></i>{% else %}<i
class="fa fa-tags"
></i
>{% endif %}: {% endcapture %} {% for post_tag in post.tags %} {% for data_tag
in site.data.tags %} {% if data_tag.slug == post_tag %} {% assign tag = data_tag
%} {% endif %} {% endfor %} {% if tag %} {% capture tags_content_temp %}{{
tags_content }}<a href="/blog/tag/{{ tag.slug }}/">{{ tag.name }}</a>{% if
forloop.last == false %}, {% endif %}{% endcapture %} {% assign tags_content =
tags_content_temp %} {% endif %} {% endfor %} {% else %} {% assign tags_content
= '' %} {% endif %}
<div class="post">
2014-12-29 18:35:21 +01:00
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
2023-02-22 19:28:38 +01:00
<p class="post-meta">
{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author
}}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
</p>
2014-12-29 18:35:21 +01:00
</header>
<article class="post-content">
{{ content }}
<p id="post-meta">{{ tags_content }}</p>
2014-12-29 18:35:21 +01:00
</article>
{% include ad.html %}
</div>