Move hx attributes up, boost page/post contents
This commit is contained in:
@@ -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 “{{ tag | escape }}”"
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user