forked from github/pelican
Document how to have same source & output hierarchy
This commit is contained in:
parent
d85f493ee3
commit
bb0ed26fdd
1 changed files with 9 additions and 0 deletions
|
|
@ -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