diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:59:59 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:59:59 -0600 |
commit | 48cabe1df739d1452e7ecc5164122a067157b057 (patch) | |
tree | 39aff6842941e6d7fc511c068d8dff51fb228ed9 /README.md | |
parent | 369944746e3bf52b93919fe4b10262fa31f15a83 (diff) |
add extra method for date conversionsv0.8.3
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -193,10 +193,12 @@ These variables are exposed to use within the templates. The below list is displ - `lang` (`str`): page language, used for the general `html` tag `lang` attribute. - `summary` (`str`): summary of the page, as specified in the `*.md` file. - `content` (`str`): actual content of the page, this is the `html`. - - `cdatetime` (`str`): creation datetime object of the page. + - `cdatetime` (`datetime.datetime`): creation datetime object of the page. + - `cdate` (`method`): method thtat takes the name of the `fmt.FMT` and applies it to the `cdatetime` object. - `cdate_rss` (`str`): formatted `cdatetime` as required by rss. - `cdate_sitemap` (`str`): formatted `cdatetime` as required by sitemap. - - `mdatetime` (`str`): modification datetime object of the page. Defaults to `None`. + - `mdatetime` (`datetime.datetime`): modification datetime object of the page. Defaults to `None`. + - `mdate` (`method`): method thtat takes the name of the `fmt.FMT` and applies it to the `mdatetime` object. - `mdate_rss` (`str`): formatted `mdatetime` as required by rss. - `mdate_sitemap` (`str`): formatted `mdatetime` as required by sitemap. - `tags` (`list(tuple(str))`): list of tuple of tags of the page, containing the name and the url of the tag, in that order. Defaults to empty list. |