Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 200139309d | |||
| 40fb6a32ac |
1 changed files with 60 additions and 7 deletions
|
|
@ -4,12 +4,65 @@ from pathlib import Path
|
|||
def vaktis():
|
||||
def callback(items, _metadata):
|
||||
items = list(items)
|
||||
items.append(
|
||||
(
|
||||
Path("prenumerera.xml"),
|
||||
{
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera.xml"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("prenumerera/lanktips.xml"),
|
||||
{
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera/lanktips.xml"),
|
||||
"content": "",
|
||||
"select": "links",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("prenumerera/inlagg.xml"),
|
||||
{
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera/inlagg.xml"),
|
||||
"content": "",
|
||||
"select": "articles",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("prenumerera/evenemang.xml"),
|
||||
{
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera/evenemang.xml"),
|
||||
"content": "",
|
||||
"select": "events",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("kommande-evenemang.ics"),
|
||||
{
|
||||
"layout": "events.ics.j2",
|
||||
"_destination": Path("kommande-evenemang.ics"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("index.md"),
|
||||
{
|
||||
"title": "Anders Englöf Ytterströms hemsida",
|
||||
"template": "home.html.j2",
|
||||
"layout": "home.html.j2",
|
||||
"_destination": Path("index.md"),
|
||||
"content": "",
|
||||
},
|
||||
|
|
@ -19,7 +72,7 @@ def vaktis():
|
|||
(
|
||||
Path("webblogg.md"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms webblogg",
|
||||
"_destination": Path("webblogg/index.md"),
|
||||
"content": "",
|
||||
|
|
@ -30,8 +83,8 @@ def vaktis():
|
|||
(
|
||||
Path("inlagg.md"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms webblogg",
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Inlägg från Anders Englöf Ytterströms webblogg",
|
||||
"select": "articles",
|
||||
"_destination": Path("inlagg/index.md"),
|
||||
"content": "",
|
||||
|
|
@ -42,8 +95,8 @@ def vaktis():
|
|||
(
|
||||
Path("lanktips.md"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms webblogg",
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Länktips från Anders Englöf Ytterströms webblogg",
|
||||
"select": "links",
|
||||
"_destination": Path("lanktips/index.md"),
|
||||
"content": "",
|
||||
|
|
@ -54,7 +107,7 @@ def vaktis():
|
|||
(
|
||||
Path("evenemang.html"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000",
|
||||
"select": "events",
|
||||
"_destination": Path("evenemang/index.md"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue