diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2022-01-25 14:36:59 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2022-01-25 20:58:41 -0500 |
commit | 3c2da303eed87e506533c738c1bcfda154944790 (patch) | |
tree | 0e5125110e58ef64ce13a980b281328f325740c6 /src/doc_reform/meta/rgx.d | |
parent | metadata, topic register to json removed, unused (diff) |
doc presentation, add option to include date with title and author
Diffstat (limited to 'src/doc_reform/meta/rgx.d')
-rw-r--r-- | src/doc_reform/meta/rgx.d | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc_reform/meta/rgx.d b/src/doc_reform/meta/rgx.d index 5df1e9c..0d2912d 100644 --- a/src/doc_reform/meta/rgx.d +++ b/src/doc_reform/meta/rgx.d @@ -91,8 +91,11 @@ static template spineRgxIn() { static comment = ctRegex!(`^%+ `); /+ header +/ /+ header +/ + static variable_doc_title_author_date = ctRegex!(`@title-author-date`); + static variable_doc_title_author = ctRegex!(`@title-author`); static variable_doc_title = ctRegex!(`@title`); static variable_doc_author = ctRegex!(`@author|@creator`); + static variable_doc_date = ctRegex!(`@date`); static raw_author_munge = ctRegex!(`(?P<last>\S.+?),\s+(?P<first>.+)`,"i"); static yaml_header_meta_title = ctRegex!(`^\s*title\s*:\s*(?:"?\w|$)`, "m"); static yaml_config = ctRegex!(`^[a-z]+\s*:\s*(?:"?\w|$)`, "m"); |