Prepend instead of append

This commit is contained in:
Anders Englöf Ytterström 2026-05-10 15:22:17 +02:00
parent 200139309d
commit 5503d59564

View file

@ -3,8 +3,7 @@ from pathlib import Path
def vaktis():
def callback(items, _metadata):
items = list(items)
items.append(
items = [
(
Path("prenumerera.xml"),
{
@ -12,9 +11,7 @@ def vaktis():
"_destination": Path("prenumerera.xml"),
"content": "",
},
)
)
items.append(
),
(
Path("prenumerera/lanktips.xml"),
{
@ -23,9 +20,7 @@ def vaktis():
"content": "",
"select": "links",
},
)
)
items.append(
),
(
Path("prenumerera/inlagg.xml"),
{
@ -34,9 +29,7 @@ def vaktis():
"content": "",
"select": "articles",
},
)
)
items.append(
),
(
Path("prenumerera/evenemang.xml"),
{
@ -45,9 +38,7 @@ def vaktis():
"content": "",
"select": "events",
},
)
)
items.append(
),
(
Path("kommande-evenemang.ics"),
{
@ -55,9 +46,7 @@ def vaktis():
"_destination": Path("kommande-evenemang.ics"),
"content": "",
},
)
)
items.append(
),
(
Path("index.md"),
{
@ -66,9 +55,7 @@ def vaktis():
"_destination": Path("index.md"),
"content": "",
},
)
)
items.append(
),
(
Path("webblogg.md"),
{
@ -76,45 +63,43 @@ def vaktis():
"title": "Anders Englöf Ytterströms webblogg",
"_destination": Path("webblogg/index.md"),
"content": "",
"page": 0,
},
)
)
items.append(
),
(
Path("inlagg.md"),
{
"layout": "blog.html.j2",
"layout": "blog.articles.html.j2",
"title": "Inlägg från Anders Englöf Ytterströms webblogg",
"select": "articles",
"_destination": Path("inlagg/index.md"),
"content": "",
"page": 0,
},
)
)
items.append(
),
(
Path("lanktips.md"),
{
"layout": "blog.html.j2",
"layout": "blog.links.html.j2",
"title": "Länktips från Anders Englöf Ytterströms webblogg",
"select": "links",
"_destination": Path("lanktips/index.md"),
"content": "",
"page": 0,
},
)
)
items.append(
),
(
Path("evenemang.html"),
{
"layout": "blog.html.j2",
"layout": "blog.events.html.j2",
"title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000",
"select": "events",
"_destination": Path("evenemang/index.md"),
"content": "",
"page": 0,
},
)
)
),
] + list(items)
return map(lambda i: i, items)
return callback