smed-vaktis/src/smed_vaktis/plugin.py

68 lines
2 KiB
Python
Raw Normal View History

2026-04-06 12:21:04 +02:00
from pathlib import Path
def vaktis():
def callback(items, _metadata):
items = list(items)
items.append(
(
2026-04-06 12:46:49 +02:00
Path("index.md"),
2026-04-06 12:21:04 +02:00
{
2026-04-06 12:46:49 +02:00
"title": "Anders Englöf Ytterströms hemsida",
2026-04-06 13:07:05 +02:00
"layout": "home.html.j2",
2026-04-06 12:46:49 +02:00
"_destination": Path("index.md"),
"content": "",
2026-04-06 12:21:04 +02:00
},
)
)
items.append(
(
2026-04-06 12:46:49 +02:00
Path("webblogg.md"),
2026-04-06 12:21:04 +02:00
{
2026-04-06 13:07:05 +02:00
"layout": "blog.html.j2",
2026-04-06 12:46:49 +02:00
"title": "Anders Englöf Ytterströms webblogg",
"_destination": Path("webblogg/index.md"),
"content": "",
2026-04-06 12:21:04 +02:00
},
)
)
items.append(
(
2026-04-06 12:46:49 +02:00
Path("inlagg.md"),
2026-04-06 12:21:04 +02:00
{
2026-04-06 13:07:05 +02:00
"layout": "blog.html.j2",
2026-04-06 12:46:49 +02:00
"title": "Anders Englöf Ytterströms webblogg",
2026-04-06 12:21:04 +02:00
"select": "articles",
2026-04-06 12:46:49 +02:00
"_destination": Path("inlagg/index.md"),
"content": "",
2026-04-06 12:21:04 +02:00
},
)
)
items.append(
(
2026-04-06 12:46:49 +02:00
Path("lanktips.md"),
2026-04-06 12:21:04 +02:00
{
2026-04-06 13:07:05 +02:00
"layout": "blog.html.j2",
2026-04-06 12:46:49 +02:00
"title": "Anders Englöf Ytterströms webblogg",
2026-04-06 12:21:04 +02:00
"select": "links",
2026-04-06 12:46:49 +02:00
"_destination": Path("lanktips/index.md"),
"content": "",
2026-04-06 12:21:04 +02:00
},
)
)
items.append(
(
2026-04-06 12:46:49 +02:00
Path("evenemang.html"),
2026-04-06 12:21:04 +02:00
{
2026-04-06 13:07:05 +02:00
"layout": "blog.html.j2",
2026-04-06 12:46:49 +02:00
"title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000",
2026-04-06 12:21:04 +02:00
"select": "events",
2026-04-06 12:46:49 +02:00
"_destination": Path("evenemang/index.md"),
"content": "",
2026-04-06 12:21:04 +02:00
},
)
)
2026-04-06 12:46:49 +02:00
return map(lambda i: i, items)
2026-04-06 12:21:04 +02:00
return callback