diff --git a/.gitignore b/.gitignore index 20fb7054..372f5fb1 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ samples/output *.pem *.lock .pdm-python +.vale .venv # direnv diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 00000000..aad18229 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,10 @@ +StylesPath = .vale/styles + +Vocab = Pelican + +MinAlertLevel = suggestion + +Packages = proselint, alex + +[*] +BasedOnStyles = Vale, proselint, alex diff --git a/docs/faq.rst b/docs/faq.rst index cecc1157..bbf058cd 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -99,6 +99,15 @@ If you want to include metadata in templates outside the article context (e.g., {% if article and article.modified %} +How do I make my output folder structure identical to my content hierarchy? +=========================================================================== + +Try these settings:: + + USE_FOLDER_AS_CATEGORY = False + PATH_METADATA = "(?P.*)\..*" + ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = "{path_no_ext}.html" + How do I assign custom templates on a per-page basis? =====================================================