Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 200139309d | |||
| 40fb6a32ac | |||
| 8b531c9b62 |
1 changed files with 93 additions and 30 deletions
|
|
@ -6,52 +6,115 @@ def vaktis():
|
|||
items = list(items)
|
||||
items.append(
|
||||
(
|
||||
Path("/index.md"),
|
||||
Path("prenumerera.xml"),
|
||||
{
|
||||
"template": "home.html.j2",
|
||||
"_destination": Path("/index.md"),
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera.xml"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("/webblogg.md"),
|
||||
Path("prenumerera/lanktips.xml"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"_destination": Path("/webblogg/index.md"),
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("/inlagg.md"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"select": "articles",
|
||||
"_destination": Path("/inlagg/index.md"),
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("/lanktips.md"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera/lanktips.xml"),
|
||||
"content": "",
|
||||
"select": "links",
|
||||
"_destination": Path("/lanktips/index.md"),
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("/evenemang.html"),
|
||||
Path("prenumerera/inlagg.xml"),
|
||||
{
|
||||
"template": "blog.html.j2",
|
||||
"select": "events",
|
||||
"_destination": Path("/evenemang/index.md"),
|
||||
"layout": "atom.xml.j2",
|
||||
"_destination": Path("prenumerera/inlagg.xml"),
|
||||
"content": "",
|
||||
"select": "articles",
|
||||
},
|
||||
)
|
||||
)
|
||||
return map(lambda i: i, items), _metadata
|
||||
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",
|
||||
"layout": "home.html.j2",
|
||||
"_destination": Path("index.md"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("webblogg.md"),
|
||||
{
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms webblogg",
|
||||
"_destination": Path("webblogg/index.md"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("inlagg.md"),
|
||||
{
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Inlägg från Anders Englöf Ytterströms webblogg",
|
||||
"select": "articles",
|
||||
"_destination": Path("inlagg/index.md"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("lanktips.md"),
|
||||
{
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Länktips från Anders Englöf Ytterströms webblogg",
|
||||
"select": "links",
|
||||
"_destination": Path("lanktips/index.md"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
items.append(
|
||||
(
|
||||
Path("evenemang.html"),
|
||||
{
|
||||
"layout": "blog.html.j2",
|
||||
"title": "Anders Englöf Ytterströms deltaganden i konserter och festivaler sedan 2000",
|
||||
"select": "events",
|
||||
"_destination": Path("evenemang/index.md"),
|
||||
"content": "",
|
||||
},
|
||||
)
|
||||
)
|
||||
return map(lambda i: i, items)
|
||||
|
||||
return callback
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue