Skip to content
Snippets Groups Projects
Verified Commit d6b56e89 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Parse language from path for posts

parent 4c721b82
No related branches found
No related tags found
No related merge requests found
Pipeline #41306 failed
......@@ -13,7 +13,8 @@ ARTICLE_PATHS = ["posts"]
PAGE_PATHS = ["pages"]
STATIC_PATHS = ["static", "images"]
PATH = "content"
PATH_METADATA = "pages/(?P<lang>[^/]*)"
FILENAME_METADATA = r'(?P<date>\d{4}-\d{2}-\d{2})_.*'
PATH_METADATA = r"(posts|pages)/(?P<lang>[^/]*)"
OUTPUT_PATH = "public"
SLUGIFY_SOURCE = "basename"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment