From 2dc1dfef9823318c2c25e13c0c41024bed6c6b17 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Mon, 14 Apr 2025 15:58:56 +0200 Subject: [PATCH] feat: added article home overview --- src/_templates/article.html | 7 ++----- stsg/build.py | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/_templates/article.html b/src/_templates/article.html index 7dc13de..7fc5527 100644 --- a/src/_templates/article.html +++ b/src/_templates/article.html @@ -14,17 +14,14 @@ aria-label="main navigation" >
-
- Go Back -
{article_content}
diff --git a/stsg/build.py b/stsg/build.py index 119e704..e2da8f4 100644 --- a/stsg/build.py +++ b/stsg/build.py @@ -143,6 +143,7 @@ class Article(CustomPath): return { "article_content": article_content, "article_preview": article_content[:ARTICLE_PREVIEW_LENGTH], + "article_overview_href": "/" + str(self.path.parent), "article_href": "/" + str(self.path.parent / self.stem), "article_language_name": self.language_code.native_name, "article_language_code": self.language_code.language_code,