First cut of myWebLog v3-compatible theme

This commit is contained in:
2026-07-19 16:53:15 -04:00
parent 595bbd3917
commit 4c8109b676
6 changed files with 68 additions and 61 deletions
+21 -16
View File
@@ -1,49 +1,52 @@
{%- assign post = model.posts | first -%}
<article class="auto">
<h1 class="entry-title">
<article class=auto>
<h1 class=entry-title>
{{ post.title }}
</h1>
<header class="entry-header">
<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 }}
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>
<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 %}
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">
<div class=entry-content>{{ post.text }}</div>
<footer class=entry-footer>
{%- assign tag_count = post.tags | size -%}
{%- if tag_count > 0 %}
<p>
<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 &ldquo;{{ tag | escape }}&rdquo;"
rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
rel=tag>{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
{%- endfor %}
</p>
{%- endif %}
<p>
Bookmark:
<a href="{{ post | absolute_link }}" rel="bookmark"
<a href="{{ post | absolute_link }}" rel=bookmark
title="Permanent link to &ldquo;{{ post.title | strip_html | escape }}&rdquo;">
the permalink
</a>
</p>
<p>
{%- if logged_on %}
Edit: <a hx-boost="false" href="{{ post | edit_post_link }}">this post</a>
{%- if is_logged_on %}
Edit: <a href="{{ post | edit_post_link }}">this post</a>
{% else %}
&nbsp;
{% endif -%}
@@ -51,13 +54,15 @@
{% if model.newer_link -%}
<p>
Next Newer Post:
<a href="{{ model.newer_link.value | relative_link }}">{{ model.newer_name.value }}</a>
<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 }}">{{ model.older_name.value }}</a>
<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>