Allow defining of filename via configuration file
This commit is contained in:
15
site.cfg
15
site.cfg
@@ -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
|
||||
|
Reference in New Issue
Block a user