Allow defining of filename via configuration file

This commit is contained in:
2022-07-28 21:59:38 -04:00
parent 1ec288bbb8
commit 873cfda86a
2 changed files with 63 additions and 23 deletions

View File

@@ -13,9 +13,17 @@ content: page.tpl.html
# Configure the navigation menu and the content templates for each page
# of the site:
# [page_name]
# navigation: <name of navigation template>
# content: <name of page content template>
# Configure filename if default name is not desired
# (Default is "ROOT/[page_name].html"):
#
# filename: OPTIONAL <relative path from ROOT -- optional>
# * <directory path> -- Must end in forward slash. File will be created
# in this path with the default naming scheme.
# * <file name> -- May include a relative path. Should include the file
# extension. May have [id] marker in path or name which
# will be substituted with a padded page id.
[index]
navigation: navigation-main.tpl.html
@@ -28,6 +36,7 @@ content: content-about.tpl.html
[correspondents]
navigation: navigation-about.tpl.html
content: content-correspondents.tpl.html
filename: correspondents/index.html
[contact]
navigation: navigation-about.tpl.html