mirror of
https://gitlab.com/free_zed/free_zed.gitlab.io.git
synced 2024-06-01 22:02:28 +00:00
Set nice URLs in config
This commit is contained in:
parent
fbdb7ff52a
commit
6eb672476f
|
@ -20,9 +20,9 @@ AUTHOR_FEED_ATOM = None
|
|||
AUTHOR_FEED_RSS = None
|
||||
|
||||
# Blogroll
|
||||
LINKS = (('Archives', '/archives.html'),
|
||||
('Tags', '/tags.html'),
|
||||
('Mentions légales', '/pages/mentions-legales.html'),)
|
||||
LINKS = (('Archives', '/articles/'),
|
||||
('Tags', '/tags/'),
|
||||
('Mentions légales', '/pages/mentions-legales/'),)
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (('Gitlab', 'https://gitlab.com/free_zed'),
|
||||
|
@ -47,3 +47,24 @@ DEFAULT_METADATA = {
|
|||
'status': 'draft',
|
||||
'Category': 'Bloc-notes',
|
||||
}
|
||||
|
||||
# URL building
|
||||
ARCHIVES_SAVE_AS = 'articles/index.html'
|
||||
ARCHIVES_URL = 'articles/'
|
||||
ARTICLE_LANG_SAVE_AS = 'articles/{date:%Y}/{date:%m}/{slug}/{lang}/index.html'
|
||||
ARTICLE_LANG_URL = 'articles/{date:%Y}/{date:%m}/{slug}/{lang}/'
|
||||
ARTICLE_SAVE_AS = 'articles/{date:%Y}/{date:%m}/{slug}/index.html'
|
||||
ARTICLE_URL = 'articles/{date:%Y}/{date:%m}/{slug}/'
|
||||
AUTHOR_URL = 'pages/a-propos/'
|
||||
CATEGORY_SAVE_AS = 'categories/{slug}/index.html'
|
||||
CATEGORY_URL = 'categories/{slug}/'
|
||||
PAGE_LANG_SAVE_AS = 'pages/{slug}/{lang}/index.html'
|
||||
PAGE_LANG_URL = 'pages/{slug}/{lang}/'
|
||||
PAGE_SAVE_AS = 'pages/{slug}/index.html'
|
||||
PAGE_URL = 'pages/{slug}/'
|
||||
TAGS_SAVE_AS = 'tags/index.html'
|
||||
TAGS_URL = 'tags/'
|
||||
TAG_SAVE_AS = 'tags/{slug}/index.html'
|
||||
TAG_URL = 'tags/{slug}/'
|
||||
YEAR_ARCHIVE_SAVE_AS = 'articles/{date:%Y}/index.html'
|
||||
YEAR_ARCHIVE_URL = 'articles/{date:%Y}/'
|
||||
|
|
Loading…
Reference in New Issue
Block a user