From ce72ab605e227cd9a7840be34c45a886095dfccb Mon Sep 17 00:00:00 2001 From: Kristof Zerbe Date: Sat, 7 Dec 2024 19:04:31 +0100 Subject: [PATCH] Releated Series & Post fix --- .../events/on-generateBefore-get-dynamic-photos.js | 6 +++--- source/_posts/2024/Discoveries-32-CSS.md | 2 +- themes/landscape/layout/_partial/post/related.ejs | 6 ++++++ themes/landscape/source/css/_partial/article.styl | 11 +++++++++++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/scripts/events/on-generateBefore-get-dynamic-photos.js b/scripts/events/on-generateBefore-get-dynamic-photos.js index a9adea8630..3bacfdc122 100644 --- a/scripts/events/on-generateBefore-get-dynamic-photos.js +++ b/scripts/events/on-generateBefore-get-dynamic-photos.js @@ -175,7 +175,7 @@ function getPoolPhotos() { } entry.file = entry.key + ".jpg"; - entry.route = entry.key; //meta?.custom.name || entry.key; + entry.route = entry.key; entry.name = meta?.ObjectName; entry.article = null; entry.pathMobile = "/" + path.join(config.pool_dir, entry.key, "mobile.jpg").replace(/\134/g,"/"); @@ -210,7 +210,7 @@ function getReservePhotos() { } entry.file = entry.key + ".jpg"; - entry.route = entry.key; //meta?.custom.name || entry.key; + entry.route = entry.key; entry.name = entry.meta?.ObjectName || entry.key; entry.article = null; entry.pathMobile = "/" + path.join(config.reserve_dir, entry.key, "mobile.jpg").replace(/\134/g,"/"); @@ -245,7 +245,7 @@ function getShedPhotos() { } entry.file = entry.key + ".jpg"; - entry.route = entry.key; //meta?.custom.name || entry.key; + entry.route = entry.key; entry.name = entry.meta?.ObjectName || entry.key; entry.article = null; entry.pathMobile = "/" + path.join(config.shed_dir, entry.key, "mobile.jpg").replace(/\134/g,"/"); diff --git a/source/_posts/2024/Discoveries-32-CSS.md b/source/_posts/2024/Discoveries-32-CSS.md index 2cd1561e06..71560f499a 100644 --- a/source/_posts/2024/Discoveries-32-CSS.md +++ b/source/_posts/2024/Discoveries-32-CSS.md @@ -16,7 +16,7 @@ tags: related: - Discoveries-31 - Discoveries-30-CSS-HowTo-s - - Discoveries-29 + - Discoveries-29-CSS syndication: - host: Mastodon url: diff --git a/themes/landscape/layout/_partial/post/related.ejs b/themes/landscape/layout/_partial/post/related.ejs index c53378ece6..3456fe6ac6 100644 --- a/themes/landscape/layout/_partial/post/related.ejs +++ b/themes/landscape/layout/_partial/post/related.ejs @@ -1,6 +1,12 @@ <% if (post.related && post.related.length){ %>

Related

+ <% if (post.series) { %> +

+ This post is part of a series. Be sure to check out the other posts of + <%= post.series %> ... +

+ <% } %>
<% post.related.forEach(function(item) { %> <% diff --git a/themes/landscape/source/css/_partial/article.styl b/themes/landscape/source/css/_partial/article.styl index 5c0c4939c7..a53590dc39 100644 --- a/themes/landscape/source/css/_partial/article.styl +++ b/themes/landscape/source/css/_partial/article.styl @@ -769,6 +769,17 @@ padding-bottom: default-padding-vert > h2 margin-bottom: small-margin + > p + margin-block: medium-margin + font-size: font-size-medium + color: color-header + /[data-theme="dark"] & + color: dark-color-header + a + text-decoration: none + border-bottom: transparent 1px solid + &:hover + border-bottom: var(--color-accent1) 1px solid .article-footer, .section-footer