Files
com.xaymar.www/_includes/article.liquid
T
Michael Fabian 'Xaymar' Dirks 6c25961683 Initial Public Release
2021-12-24 11:02:16 +01:00

54 lines
1.5 KiB
Plaintext

<article class="{{ include.type | default: "post" }}">
{% if include.title %}
<div class="title">
{% if include.index %}
<a href="{{ include.permalink | absolute_url }}">
{% endif %}
{{ include.title }}
{% if include.index %}
</a>
{% endif %}
</div>
{% endif %}
<div class="content">
{{ include.content }}
</div>
{% if include.index %}
<div class="readmore">
<a class="readmore" href="{{ include.permalink | absolute_url }}">
{{ site.xaymar.index.readmore }}
</a>
</div>
{% endif %}
{% if site.xaymar.meta.permalink.enabled and include.permalink != nil %}
{% assign has_meta_permalink=true %}
{% endif %}
{% if site.xaymar.meta.tags.enabled and include.tags != nil %}
{% assign has_meta_tags=true %}
{% endif %}
{% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags %}
<div class="meta">
{% if has_meta_permalink %}
<a class="permalink" href="{{ include.permalink | absolute_url }}">
{% if include.date %}<time datetime="{{ include.date | date_to_xmlschema }}">{% endif %}
Permalink
{% if include.date %}</time>{% endif %}
</a>
{% endif %}
{% if has_meta_tags %}
<div class="tags">
<span>Tags:</span>
{% for entry in include.tags %}
{% assign tag=entry | slugify: site.xaymar.links.tag.slugify %}
<span class="tag">
<a href="{{ site.xaymar.links.tag.permalink | replace: ":tag", tag | absolute_url }}">
{{ entry }}
</a>
</span>
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
</article>