This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
config
Klaus Mueller edited this page Dec 15, 2018
·
17 revisions
For basic config values (filepathes, extensions) in _drf/config.yml
.
- htmlextension: filename extension for html output. Mostly '.html'.
- tplextension: filename extension for template. Mostly '.html'.
- namespaceseparator: separator in output html filename and there for in the URL. Mostly ':'.
-
metaseparator: tag in pages to seperate content and config (
#meta#
). - defaulttemplate: used template name
- gitsource: pulls a git repo in source directors and creates pages only from new files.
- sourceexclude: exclude files from generating. eg '.git'
-
directory: filepath for templates, text-source and target for html.
- area: defines filepath for navigation, sidebar and footer; parts of the page always appear like the menu.
Metainformation (template, comments, meta-description, title etc) can be defined in yaml
- for each page at the bottom of sourcefile after the
#meta#
(can be redefined in config 'ymlseparator'). - or for each directory in
meta.yml
or for the whole site insource/
.
For 'each page' and 'directory' can be set also with webedit.
Metatags with function in drfrederson:
-
publish
false
prevents drfrederson from building pages (default: true). - template: used template for rendering.
-
sidebar: overwrites the area
sidebar
. - webedit: prevents the webedit. This is not a Security feature.
Not used by drfrederson, but useful for templates:
- pagetitle: mostly used in HTML Title Element for each page
- siteTitle: also used in html title, but for the whole site
- description: meta description
- baseurl: root url http://example.com or http://example.com/mypage for absolute URL inside the html. Works also with relative (leave empty).
- jsdelivrdomain: all JS-libraries are loadedwith jsdelivr.com, but of course you can setup up your own jsdelivr-fork. (or use another lib source)
-
css: additional css with
url
on a local or external file, orinline
with direct<style>
directives. -
js: additional js with
url
on a local or external file, orinline
with direct<script>
directives. -
jquery: similar to
js
-inline
, but with the standard jQuery document.ready (e.g"$('.fancybox').fancybox();"
) -
jsdelivr: load JS-libraries from jsdelivr.com in a single HTTP request. Seperate with and use a leading
,
(e.g",fancybox"
) - d2c: data2css adds a class to html-body
- cssjsversion: versioning css and js
Most meta values are in example.md