diff --git a/src/smed_vaktis/plugin.py b/src/smed_vaktis/plugin.py index db4673c..23dd4cd 100644 --- a/src/smed_vaktis/plugin.py +++ b/src/smed_vaktis/plugin.py @@ -4,6 +4,59 @@ 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"), @@ -31,7 +84,7 @@ def vaktis(): Path("inlagg.md"), { "layout": "blog.html.j2", - "title": "Anders Englöf Ytterströms webblogg", + "title": "Inlägg från Anders Englöf Ytterströms webblogg", "select": "articles", "_destination": Path("inlagg/index.md"), "content": "", @@ -43,7 +96,7 @@ def vaktis(): Path("lanktips.md"), { "layout": "blog.html.j2", - "title": "Anders Englöf Ytterströms webblogg", + "title": "Länktips från Anders Englöf Ytterströms webblogg", "select": "links", "_destination": Path("lanktips/index.md"), "content": "",