From 8b531c9b6271631954628ff0c0549e1b02134ede Mon Sep 17 00:00:00 2001 From: aey Date: Mon, 6 Apr 2026 12:46:49 +0200 Subject: [PATCH] Make it useful --- src/smed_vaktis/plugin.py | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/src/smed_vaktis/plugin.py b/src/smed_vaktis/plugin.py index bdb0aa1..2be3933 100644 --- a/src/smed_vaktis/plugin.py +++ b/src/smed_vaktis/plugin.py @@ -6,52 +6,62 @@ def vaktis(): items = list(items) items.append( ( - Path("/index.md"), + Path("index.md"), { + "title": "Anders Englöf Ytterströms hemsida", "template": "home.html.j2", - "_destination": Path("/index.md"), + "_destination": Path("index.md"), + "content": "", }, ) ) items.append( ( - Path("/webblogg.md"), + Path("webblogg.md"), { "template": "blog.html.j2", - "_destination": Path("/webblogg/index.md"), + "title": "Anders Englöf Ytterströms webblogg", + "_destination": Path("webblogg/index.md"), + "content": "", }, ) ) items.append( ( - Path("/inlagg.md"), + Path("inlagg.md"), { "template": "blog.html.j2", + "title": "Anders Englöf Ytterströms webblogg", "select": "articles", - "_destination": Path("/inlagg/index.md"), + "_destination": Path("inlagg/index.md"), + "content": "", }, ) ) items.append( ( - Path("/lanktips.md"), + Path("lanktips.md"), { "template": "blog.html.j2", + "title": "Anders Englöf Ytterströms webblogg", "select": "links", - "_destination": Path("/lanktips/index.md"), + "_destination": Path("lanktips/index.md"), + "content": "", }, ) ) items.append( ( - Path("/evenemang.html"), + Path("evenemang.html"), { "template": "blog.html.j2", + "title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000", "select": "events", - "_destination": Path("/evenemang/index.md"), + "_destination": Path("evenemang/index.md"), + "content": "", }, ) ) - return map(lambda i: i, items), _metadata + return map(lambda i: i, items) return callback