Move hx attributes up, boost page/post contents
This commit is contained in:
+6
-7
@@ -10,17 +10,17 @@
|
||||
<h1 class="home-title">
|
||||
<small class="home-lead">{{ post.published_on | format_date: "dddd, MMMM d, yyyy" }}</small><br>
|
||||
|
||||
<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 "{{ post.title | strip_html | escape }}"">
|
||||
{{ 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 “{{ tag | escape }}”"
|
||||
@@ -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 }}">« Newer Posts</a>
|
||||
|
||||
Reference in New Issue
Block a user