Prepend instead of append
This commit is contained in:
parent
200139309d
commit
5503d59564
1 changed files with 19 additions and 34 deletions
|
|
@ -3,8 +3,7 @@ from pathlib import Path
|
||||||
|
|
||||||
def vaktis():
|
def vaktis():
|
||||||
def callback(items, _metadata):
|
def callback(items, _metadata):
|
||||||
items = list(items)
|
items = [
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("prenumerera.xml"),
|
Path("prenumerera.xml"),
|
||||||
{
|
{
|
||||||
|
|
@ -12,9 +11,7 @@ def vaktis():
|
||||||
"_destination": Path("prenumerera.xml"),
|
"_destination": Path("prenumerera.xml"),
|
||||||
"content": "",
|
"content": "",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("prenumerera/lanktips.xml"),
|
Path("prenumerera/lanktips.xml"),
|
||||||
{
|
{
|
||||||
|
|
@ -23,9 +20,7 @@ def vaktis():
|
||||||
"content": "",
|
"content": "",
|
||||||
"select": "links",
|
"select": "links",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("prenumerera/inlagg.xml"),
|
Path("prenumerera/inlagg.xml"),
|
||||||
{
|
{
|
||||||
|
|
@ -34,9 +29,7 @@ def vaktis():
|
||||||
"content": "",
|
"content": "",
|
||||||
"select": "articles",
|
"select": "articles",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("prenumerera/evenemang.xml"),
|
Path("prenumerera/evenemang.xml"),
|
||||||
{
|
{
|
||||||
|
|
@ -45,9 +38,7 @@ def vaktis():
|
||||||
"content": "",
|
"content": "",
|
||||||
"select": "events",
|
"select": "events",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("kommande-evenemang.ics"),
|
Path("kommande-evenemang.ics"),
|
||||||
{
|
{
|
||||||
|
|
@ -55,9 +46,7 @@ def vaktis():
|
||||||
"_destination": Path("kommande-evenemang.ics"),
|
"_destination": Path("kommande-evenemang.ics"),
|
||||||
"content": "",
|
"content": "",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("index.md"),
|
Path("index.md"),
|
||||||
{
|
{
|
||||||
|
|
@ -66,9 +55,7 @@ def vaktis():
|
||||||
"_destination": Path("index.md"),
|
"_destination": Path("index.md"),
|
||||||
"content": "",
|
"content": "",
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("webblogg.md"),
|
Path("webblogg.md"),
|
||||||
{
|
{
|
||||||
|
|
@ -76,45 +63,43 @@ def vaktis():
|
||||||
"title": "Anders Englöf Ytterströms webblogg",
|
"title": "Anders Englöf Ytterströms webblogg",
|
||||||
"_destination": Path("webblogg/index.md"),
|
"_destination": Path("webblogg/index.md"),
|
||||||
"content": "",
|
"content": "",
|
||||||
|
"page": 0,
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("inlagg.md"),
|
Path("inlagg.md"),
|
||||||
{
|
{
|
||||||
"layout": "blog.html.j2",
|
"layout": "blog.articles.html.j2",
|
||||||
"title": "Inlägg från Anders Englöf Ytterströms webblogg",
|
"title": "Inlägg från Anders Englöf Ytterströms webblogg",
|
||||||
"select": "articles",
|
"select": "articles",
|
||||||
"_destination": Path("inlagg/index.md"),
|
"_destination": Path("inlagg/index.md"),
|
||||||
"content": "",
|
"content": "",
|
||||||
|
"page": 0,
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("lanktips.md"),
|
Path("lanktips.md"),
|
||||||
{
|
{
|
||||||
"layout": "blog.html.j2",
|
"layout": "blog.links.html.j2",
|
||||||
"title": "Länktips från Anders Englöf Ytterströms webblogg",
|
"title": "Länktips från Anders Englöf Ytterströms webblogg",
|
||||||
"select": "links",
|
"select": "links",
|
||||||
"_destination": Path("lanktips/index.md"),
|
"_destination": Path("lanktips/index.md"),
|
||||||
"content": "",
|
"content": "",
|
||||||
|
"page": 0,
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
|
||||||
items.append(
|
|
||||||
(
|
(
|
||||||
Path("evenemang.html"),
|
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",
|
"title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000",
|
||||||
"select": "events",
|
"select": "events",
|
||||||
"_destination": Path("evenemang/index.md"),
|
"_destination": Path("evenemang/index.md"),
|
||||||
"content": "",
|
"content": "",
|
||||||
|
"page": 0,
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
] + list(items)
|
||||||
return map(lambda i: i, items)
|
return map(lambda i: i, items)
|
||||||
|
|
||||||
return callback
|
return callback
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue