customise blog post URL and fix English menu links
This commit is contained in:
parent
b1189c7a91
commit
698aa649f2
|
@ -15,6 +15,8 @@ PATH = 'content'
|
||||||
STATIC_PATHS = ['images', 'static']
|
STATIC_PATHS = ['images', 'static']
|
||||||
ARTICLE_PATHS = ['blog']
|
ARTICLE_PATHS = ['blog']
|
||||||
INDEX_SAVE_AS = 'blog/index.html'
|
INDEX_SAVE_AS = 'blog/index.html'
|
||||||
|
ARTICLE_URL = 'blog/{slug}.html'
|
||||||
|
ARTICLE_SAVE_AS = 'blog/{slug}.html'
|
||||||
|
|
||||||
CUSTOM_CSS = "static/custom.css"
|
CUSTOM_CSS = "static/custom.css"
|
||||||
|
|
||||||
|
@ -83,17 +85,17 @@ I18N_SUBSITES = {
|
||||||
'SITENAME': "Schmittlauch's Blog & Homepage",
|
'SITENAME': "Schmittlauch's Blog & Homepage",
|
||||||
'SITESUBTITLE': 'Tech, Politics & Life',
|
'SITESUBTITLE': 'Tech, Politics & Life',
|
||||||
'MENUITEMS': (
|
'MENUITEMS': (
|
||||||
("Blog", f"{_LOC}/blog/"),
|
("Blog", f"/{_LOC}/blog/"),
|
||||||
("Archives", f"{_LOC}/archives.html"),
|
("Archives", f"/{_LOC}/archives.html"),
|
||||||
("Categories", f"{_LOC}/categories.html"),
|
("Categories", f"/{_LOC}/categories.html"),
|
||||||
("Tags", f"{_LOC}/tags.html"),
|
("Tags", f"/{_LOC}/tags.html"),
|
||||||
("Impressum", f"{_LOC}/pages/impressum.html"),
|
("Impressum", f"/{_LOC}/pages/impressum.html"),
|
||||||
),
|
),
|
||||||
'LINKS': (
|
'LINKS': (
|
||||||
('Blog', f'{_LOC}/blog/'),
|
('Blog', f'/{_LOC}/blog/'),
|
||||||
('About', f'{_LOC}/pages/about.html'),
|
('About', f'/{_LOC}/pages/about.html'),
|
||||||
('Professional & CV', f'{_LOC}/pages/professional.html'),
|
('Professional & CV', f'/{_LOC}/pages/professional.html'),
|
||||||
('Contact', f'{_LOC}/pages/contact.html'),
|
('Contact', f'/{_LOC}/pages/contact.html'),
|
||||||
#('', ''),
|
#('', ''),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue