Add support for `subtitle` frontmatter key
Anirudh icyph0x@pm.me
Mon, 08 Apr 2019 23:25:52 +0530
2 files changed,
5 insertions(+),
3 deletions(-)
M
README.md
→
README.md
@@ -77,6 +77,7 @@ ```markdown
--- template: foo.html title: Some fancy buzzwords here +subtitle: Cool catch phrase here date: 1 April, 2019 ---@@ -112,7 +113,7 @@ - [x] Add example site
- [x] Basic config (`config.py`) - [x] Parsing frontmatter (JSON, YAML, TOML) for per-page options - [x] Better support for home page (main `index.html` page) -- [ ] More powerful frontmatter (title, date, draft status, etc.) -- [ ] Deeper directories under `pages/` (supports only one level now, breaks otherwise) -- [ ] Tagging system +- [x] More powerful frontmatter (title, date, draft status, etc.) (draft status is incomplete) +- [ ] ~Deeper directories under `pages/` (supports only one level now, breaks otherwise)~ (not happening) +- [ ] ~Tagging system~ (not happening)
M
vite/vite.py
→
vite/vite.py
@@ -119,6 +119,7 @@ author=meta['author'] if 'author' in meta else config.author,
header=meta['header'] if 'header' in meta else config.header, footer=meta['footer'] if 'footer' in meta else config.footer, date=meta['date'] if 'date' in meta else '', + subtitle=meta['subtitle'] if 'subtitle' in meta else '', body=html) return output except jinja2.exceptions.TemplateNotFound: