70 lines
2.6 KiB
Plaintext
70 lines
2.6 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 | format_date: "dddd, MMMM d, yyyy" }}
|
|
at {{ post.published_on | format_date: "h:mm tt" | downcase }}
|
|
</p>
|
|
{%- assign cat_count = post.category_ids | size -%}
|
|
{%- if cat_count > 0 %}
|
|
<p hx-boost:inherited=true hx-target:inherited="#content" hx-swap:inherited="innerHTML show:top showTarget:#top"
|
|
hx-indicator:inherited="#loadOverlay">
|
|
<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 hx-boost:inherited=true hx-target:inheritied="#content" hx-swap:inherited="innerHTML show:top showTarget:#top"
|
|
hx-indicator:inherited="#loadOverlay">
|
|
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 is_logged_on %}
|
|
Edit: <a 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 }}" hx-boost=true hx-target="#content"
|
|
hx-swap="innerHTML show:top showTarget:#top" hx-indicator="#loadOverlay">{{ model.newer_name.value }}</a>
|
|
</p>
|
|
{% endif %}
|
|
{% if model.older_link -%}
|
|
<p>
|
|
Next Older Post:
|
|
<a href="{{ model.older_link.value | relative_link }}" hx-boost=true hx-target="#content"
|
|
hx-swap="innerHTML show:top showTarget:#top" hx-indicator="#loadOverlay">{{ model.older_name.value }}</a>
|
|
</p>
|
|
{%- endif -%}
|
|
</footer>
|
|
</article>
|