65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
{%- assign post = model.posts | first -%}
|
|
<article class="auto">
|
|
<h1 class="entry-title">
|
|
{{ post.title }}
|
|
</h1>
|
|
<header class="entry-header">
|
|
<p>
|
|
Posted by {{ model.authors | value: post.author_id }} on {{ post.published_on | date: "dddd, MMMM d, yyyy" }}
|
|
at {{ post.published_on | date: "h:mm tt" | downcase }}
|
|
</p>
|
|
{%- assign cat_count = post.category_ids | size -%}
|
|
{%- if cat_count > 0 %}
|
|
<p>
|
|
<small>
|
|
Categorized under
|
|
{% for cat_id in post.category_ids -%}
|
|
{%- assign cat = categories | where: "Id", cat_id | first -%}
|
|
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | strip_html | escape }}"
|
|
rel="tag">{{ cat.name }}</a>{% unless forloop.last %}, {% endunless %}
|
|
{%- endfor %}
|
|
</small>
|
|
</p>
|
|
{%- endif %}
|
|
</header>
|
|
<div class="entry-content">{{ post.text }}</div>
|
|
<footer class="entry-footer">
|
|
{%- assign tag_count = post.tags | size -%}
|
|
{%- if tag_count > 0 %}
|
|
<p>
|
|
Tagged:
|
|
{% for tag in post.tags -%}
|
|
<a href="{{ tag | tag_link }}" title="Tagged “{{ tag | escape }}”"
|
|
rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
|
|
{%- endfor %}
|
|
</p>
|
|
{%- endif %}
|
|
<p>
|
|
Bookmark:
|
|
<a href="{{ post | absolute_link }}" rel="bookmark"
|
|
title="Permanent link to “{{ post.title | strip_html | escape }}”">
|
|
the permalink
|
|
</a>
|
|
</p>
|
|
<p>
|
|
{%- if logged_on %}
|
|
Edit: <a hx-boost="false" href="{{ post | edit_post_link }}">this post</a>
|
|
{% else %}
|
|
|
|
{% endif -%}
|
|
</p>
|
|
{% if model.newer_link -%}
|
|
<p>
|
|
Next Newer Post:
|
|
<a href="{{ model.newer_link.value | relative_link }}">{{ model.newer_name.value }}</a>
|
|
</p>
|
|
{% endif %}
|
|
{% if model.older_link -%}
|
|
<p>
|
|
Next Older Post:
|
|
<a href="{{ model.older_link.value | relative_link }}">{{ model.older_name.value }}</a>
|
|
</p>
|
|
{%- endif -%}
|
|
</footer>
|
|
</article>
|