Skip to content

Commit

Permalink
Document how to have same source & output hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Jul 30, 2024
1 parent d85f493 commit bb0ed26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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?
=====================================================

Expand Down

0 comments on commit bb0ed26

Please sign in to comment.