First cut of myWebLog v3-compatible theme
This commit is contained in:
+8
-7
@@ -4,11 +4,11 @@
|
||||
<p>{{ subtitle }}</p>
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
{%- for post in model.posts %}
|
||||
{%- for post in posts.posts %}
|
||||
<article class="auto">
|
||||
<div>
|
||||
<h1 class="home-title">
|
||||
<small class="home-lead">{{ post.published_on | date: "dddd, MMMM d, yyyy" }}</small><br>
|
||||
<small class="home-lead">{{ post.published_on | format_date: "dddd, MMMM d, yyyy" }}</small><br>
|
||||
|
||||
<a href="{{ post | relative_link }}"
|
||||
id="{{ post.title | strip_html | downcase | replace: " ", "-" | replace: ":", "" }}"
|
||||
@@ -42,15 +42,16 @@
|
||||
{%- if logged_on %}<small><a hx-boost="false" href="{{ post | edit_post_link }}">Edit Post</a></small>{% endif %}
|
||||
</article>
|
||||
{%- endfor %}
|
||||
<div class="bottom-nav" role="navigation">
|
||||
<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="nav-previous">
|
||||
{% if model.newer_link -%}
|
||||
<a href="{{ model.newer_link.value }}">« Newer Posts</a>
|
||||
{% if posts.newer_link -%}
|
||||
<a href="{{ posts.newer_link.value }}">« Newer Posts</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="nav-next">
|
||||
{% if model.older_link -%}
|
||||
<a href="{{ model.older_link.value }}">Older Posts »</a>
|
||||
{% if posts.older_link -%}
|
||||
<a href="{{ posts.older_link.value }}">Older Posts »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user