Files
com.xaymar.www/_includes/article.liquid
T

58 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-12-24 11:00:43 +01:00
<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 %}
2021-12-25 09:08:01 +01:00
{% if site.xaymar.meta.timestamp.enabled and include.timestamp %}
{% assign has_meta_timestamp=true %}
{% endif %}
2021-12-24 11:00:43 +01:00
{% if site.xaymar.meta.tags.enabled and include.tags != nil %}
{% assign has_meta_tags=true %}
{% endif %}
2021-12-25 09:08:01 +01:00
{% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags or has_meta_date %}
2021-12-24 11:00:43 +01:00
<div class="meta">
{% if has_meta_permalink %}
<a class="permalink" href="{{ include.permalink | absolute_url }}">
2021-12-25 09:08:01 +01:00
{% if include.timestamp %}<time datetime="{{ include.timestamp | date_to_xmlschema }}">{% endif %}
2021-12-24 11:00:43 +01:00
Permalink
2021-12-25 09:08:01 +01:00
{% if include.timestamp %}</time>{% endif %}
2021-12-24 11:00:43 +01:00
</a>
{% endif %}
2021-12-25 09:08:01 +01:00
{% if has_meta_timestamp %}
<time class="timestamp" datetime="{{ include.timestamp | date_to_xmlschema }}">
{{ include.timestamp | date_to_string }}
</time>
{% endif %}
2021-12-24 11:00:43 +01:00
{% if has_meta_tags %}
<div class="tags">
<span>Tags:</span>
{% for entry in include.tags %}
{% assign tag=entry | slugify: site.xaymar.links.tag.slugify %}
2021-12-25 09:14:45 +01:00
<span class="tag"><a href="{{ site.xaymar.links.tag.permalink | replace: ":tag", tag | absolute_url }}">{{ entry }}</a></span>
2021-12-24 11:00:43 +01:00
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
</article>