mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-05 18:26:54 +02:00
Merge branch 'getpelican:main' into chinese-translation
This commit is contained in:
commit
eac032be38
3 changed files with 20 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,6 +17,7 @@ samples/output
|
|||
*.pem
|
||||
*.lock
|
||||
.pdm-python
|
||||
.vale
|
||||
.venv
|
||||
|
||||
# direnv
|
||||
|
|
|
|||
10
.vale.ini
Normal file
10
.vale.ini
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
StylesPath = .vale/styles
|
||||
|
||||
Vocab = Pelican
|
||||
|
||||
MinAlertLevel = suggestion
|
||||
|
||||
Packages = proselint, alex
|
||||
|
||||
[*]
|
||||
BasedOnStyles = Vale, proselint, alex
|
||||
|
|
@ -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<path_no_ext>.*)\..*"
|
||||
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?
|
||||
=====================================================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue