From 1d7d85e20fcb10694bf0d405aef2d67b85b3b3b9 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Tue, 25 Nov 2025 14:40:02 -0700 Subject: [PATCH] Updated site layout for preliminary pagination handling. --- sources/site/includes/layouts/notes.njk | 35 +++++++++++++++++++++---- sources/site/includes/layouts/post.njk | 4 +-- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/sources/site/includes/layouts/notes.njk b/sources/site/includes/layouts/notes.njk index 2624b5b..bdbd7ee 100644 --- a/sources/site/includes/layouts/notes.njk +++ b/sources/site/includes/layouts/notes.njk @@ -2,12 +2,14 @@ layout: base pagination: data: collections.notes - size: 3 + size: 6 alias: notes + permalink: notes/{{ notes | slugify }}/index.html ---
+ {#
-
+ #}
@@ -43,7 +45,7 @@ pagination: {% for item in post.data.tags %} - {%- if item !== 'blog' -%} + {%- if item !== 'notes' -%} {{ item | capitalize }} @@ -63,9 +65,12 @@ pagination:
-

{{ post.data.title }}

+

{{ post.data.title }}

+ {%- if post.data.sub_heading -%} +

{{ post.data.sub_heading }}

+ {%- endif -%} -
+ {% if pagination.pages.length > 1 %} + + {% endif %} +
diff --git a/sources/site/includes/layouts/post.njk b/sources/site/includes/layouts/post.njk index 3e6d8b5..be075b7 100644 --- a/sources/site/includes/layouts/post.njk +++ b/sources/site/includes/layouts/post.njk @@ -50,7 +50,7 @@ layout: base {# featured post image #} - {% if post_image %} + {# if post_image %}
@@ -62,7 +62,7 @@ layout: base
- {% endif %} + {% endif #}