customise blog post URL and fix English menu links

This commit is contained in:
Trolli Schmittlauch 2022-03-01 02:32:06 +01:00
parent b1189c7a91
commit 698aa649f2

View file

@ -15,6 +15,8 @@ PATH = 'content'
STATIC_PATHS = ['images', 'static']
ARTICLE_PATHS = ['blog']
INDEX_SAVE_AS = 'blog/index.html'
ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
CUSTOM_CSS = "static/custom.css"
@ -83,17 +85,17 @@ I18N_SUBSITES = {
'SITENAME': "Schmittlauch's Blog & Homepage",
'SITESUBTITLE': 'Tech, Politics & Life',
'MENUITEMS': (
("Blog", f"{_LOC}/blog/"),
("Archives", f"{_LOC}/archives.html"),
("Categories", f"{_LOC}/categories.html"),
("Tags", f"{_LOC}/tags.html"),
("Impressum", f"{_LOC}/pages/impressum.html"),
("Blog", f"/{_LOC}/blog/"),
("Archives", f"/{_LOC}/archives.html"),
("Categories", f"/{_LOC}/categories.html"),
("Tags", f"/{_LOC}/tags.html"),
("Impressum", f"/{_LOC}/pages/impressum.html"),
),
'LINKS': (
('Blog', f'{_LOC}/blog/'),
('About', f'{_LOC}/pages/about.html'),
('Professional & CV', f'{_LOC}/pages/professional.html'),
('Contact', f'{_LOC}/pages/contact.html'),
('Blog', f'/{_LOC}/blog/'),
('About', f'/{_LOC}/pages/about.html'),
('Professional & CV', f'/{_LOC}/pages/professional.html'),
('Contact', f'/{_LOC}/pages/contact.html'),
#('', ''),
),
}