Move hx attributes up, boost page/post contents

This commit is contained in:
2026-07-24 22:04:03 -04:00
parent 4c8109b676
commit 6a7ce66114
5 changed files with 22 additions and 34 deletions
+5 -9
View File
@@ -11,8 +11,7 @@
</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">
<p hx-boost:inherited=true>
<small>
Categorized under
{% for cat_id in post.category_ids -%}
@@ -24,12 +23,11 @@
</p>
{%- endif %}
</header>
<div class=entry-content>{{ post.text }}</div>
<div class=entry-content hx-boost:inherited=true>{{ 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">
<p hx-boost:inherited=true>
Tagged:
{% for tag in post.tags -%}
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;"
@@ -54,15 +52,13 @@
{% 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>
<a href="{{ model.newer_link.value | relative_link }}" hx-boost=true>{{ 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>
<a href="{{ model.older_link.value | relative_link }}" hx-boost=true>{{ model.older_name.value }}</a>
</p>
{%- endif -%}
</footer>