From e4217aca3ff8d7e88b5af612602673790002446c Mon Sep 17 00:00:00 2001 From: adnano Date: Wed, 9 Feb 2022 01:43:11 -0500 Subject: [PATCH] docs: Move functions to bottom --- docs/kiln.1.scd | 162 ++++++++++++++++++++++++------------------------ 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/docs/kiln.1.scd b/docs/kiln.1.scd index bfd70b2..244c20f 100644 --- a/docs/kiln.1.scd +++ b/docs/kiln.1.scd @@ -406,6 +406,87 @@ Example feed configuration: Templates have certain data and functions available to them. +## SITE METADATA + +Site metadata contains the following data: + +*Title* + The title of the site. + +*Params* + Extra parameters specified in configuration. + +*Generated* + Site generation time. + +Site metadata can be accessed from templates with the *site* function. See +*TEMPLATE FUNCTIONS*. + +To configure these variables, see *CONFIGURATION*. + +## PAGE TEMPLATES + +Page and index templates are provided with the following data: + +*Title* + The title of the page + +*Date* + The date of the page + +*Weight* + The weight of the page + +*Path* + The path to the page + +*URL* + The URL of the page. If no base URL is configured, it is equivalent to + *Path*. + +*FilePath* + The path of the page file or directory relative to the content directory + +*Content* + The contents of the page + +*Params* + Extra parameters specified in frontmatter + +*Prev* + The previous page in sorted order + +*Next* + The next page in sorted order + +*Pages* + List of pages in this directory + +*Dirs* + List of subdirectories in this directory + +## FEED TEMPLATES + +Feed templates are provided with the following data: + +*Title* + Title of the feed + +*Path* + The path to the feed directory + +*URL* + The URL of the feed directory + +*Pages* + List of pages in this feed + +## PARTIAL TEMPLATES + +Partial templates can be placed in the templates/\_partials directory. +Partial templates can be executed from any other template with the *partial* +function. See *TEMPLATE FUNCTIONS*. + ## TEMPLATE FUNCTIONS All templates have the following functions available to them: @@ -630,84 +711,3 @@ All templates have the following functions available to them: its arguments in a form suitable for embedding in a URL query. This function is unavailable in HTML templates, with a few exceptions. - -## SITE METADATA - -Site metadata contains the following data: - -*Title* - The title of the site. - -*Params* - Extra parameters specified in configuration. - -*Generated* - Site generation time. - -Site metadata can be accessed from templates with the *site* function. See -*TEMPLATE FUNCTIONS*. - -To configure these variables, see *CONFIGURATION*. - -## PAGE TEMPLATES - -Page templates are provided with the following data: - -*Title* - The title of the page - -*Date* - The date of the page - -*Weight* - The weight of the page - -*Path* - The path to the page - -*URL* - The URL of the page. If no base URL is configured, it is equivalent to - *Path*. - -*FilePath* - The path of the page file or directory relative to the content directory - -*Content* - The contents of the page - -*Params* - Extra parameters specified in frontmatter - -*Prev* - The previous page in sorted order - -*Next* - The next page in sorted order - -*Pages* - List of pages in this directory - -*Dirs* - List of subdirectories in this directory - -## FEED TEMPLATES - -Feed templates are provided with the following data: - -*Title* - Title of the feed - -*Path* - The path to the feed directory - -*URL* - The URL of the feed directory - -*Pages* - List of pages in this feed - -## PARTIAL TEMPLATES - -Partial templates can be placed in the templates/\_partials directory. -Partial templates can be executed from any other template with the *partial* -function. See *TEMPLATE FUNCTIONS*.