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
+6 -7
View File
@@ -10,17 +10,17 @@
<h1 class="home-title">
<small class="home-lead">{{ post.published_on | format_date: "dddd, MMMM d, yyyy" }}</small><br>
&nbsp;
<a href="{{ post | relative_link }}"
<a href="{{ post | relative_link }}" hx-boost=true
id="{{ post.title | strip_html | downcase | replace: " ", "-" | replace: ":", "" }}"
title="Permanent Link to &quot;{{ post.title | strip_html | escape }}&quot;">
{{ post.title }}
</a>
</h1>
</div>
<div class="entry-content">{{ post.text }}</div>
<div class="entry-content" hx-boost:inherited=true>{{ post.text }}</div>
{%- assign cat_count = post.category_ids | size -%}
{%- if cat_count > 0 %}
<small>
<small hx-boost:inherited=true>
Categorized under
{% for cat_id in post.category_ids -%}
{%- assign cat = categories | where: "Id", cat_id | first -%}
@@ -31,7 +31,7 @@
{%- endif %}
{%- assign tag_count = post.tags | size -%}
{%- if tag_count > 0 %}
<small>
<small hx-boost:inherited=true>
Tagged
{% for tag in post.tags -%}
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;"
@@ -39,11 +39,10 @@
{%- endfor %}
</small><br>
{%- endif %}
{%- if logged_on %}<small><a hx-boost="false" href="{{ post | edit_post_link }}">Edit Post</a></small>{% endif %}
{%- if logged_on %}<small><a href="{{ post | edit_post_link }}">Edit Post</a></small>{% endif %}
</article>
{%- endfor %}
<div class="bottom-nav" role="navigation" hx-boost:inherited=true hx-target:inherited="#content"
hx-swap:inherited="innerHTML show:top showTarget:#top" hx-indicator:inherited="#loadOverlay">
<div class="bottom-nav" role="navigation" hx-boost:inherited=true>
<div class="nav-previous">
{% if posts.newer_link -%}
<a href="{{ posts.newer_link.value }}">&laquo; Newer Posts</a>