summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2025-06-23 19:29:46 +0200
committeruvok cheetah2025-06-23 19:29:46 +0200
commit27855988ebba2c3a6cda642a905bb177413dab6e (patch)
tree4d1320a18139afa0a3fd28746c324f48a1c1a54f
parent1ec9025a29c3681e4668ace8d3e6782640e83f13 (diff)
gemini: Include navigation, fix post excerpt
excerpt shouldn't clutter post date
-rw-r--r--_layouts.gemini/postlist.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/_layouts.gemini/postlist.html b/_layouts.gemini/postlist.html
index 62ea916..22b7f47 100644
--- a/_layouts.gemini/postlist.html
+++ b/_layouts.gemini/postlist.html
@@ -6,7 +6,13 @@ layout: default
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}
- [Feed link](/feed.gmi)
+ {% assign spag = site.pages | sort: "order" %}
+ {% for my_page in spag %}
+ {% if my_page.title and my_page.content and my_page.url != "/index.html" and my_page.in_navbar %}
+<a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
+ {% endif %}
+ {% endfor %}
+<a href="/feed.gmi">Feed link</a>
{%- if site.posts.size > 0 -%}
@@ -21,7 +27,7 @@ layout: default
{{ post.title | escape }}
</h2>
<span class="post-meta">Published: {{ post.date | date: date_format }}</span>
-
+<p>
{%- if forloop.first and paginator.page == 1 or paginator == site -%}
{{ post.content }}
{%- assign showsep = true -%}
@@ -32,6 +38,7 @@ layout: default
{{ post.description }}
{%- assign showsep = true -%}
{%- endif -%}
+</p>
<a class="post-link" href="{{ post.url | relative_url }}">Link to full post</a>
</div>