all repos — py-vite @ 67f1fbeb1cafd2b5825b7bf0049383d6186c00d1

the original vite, written in python

Add support for `subtitle` frontmatter key
Anirudh icyph0x@pm.me
Mon, 08 Apr 2019 23:25:52 +0530
commit

67f1fbeb1cafd2b5825b7bf0049383d6186c00d1

parent

070fba970f049509c25cf017fc6a40c3f57b10e9

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M README.mdREADME.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.pyvite/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: