all repos — py-vite @ ca62c1052294c4298eb8c7e5cbb252a426185e7e

the original vite, written in python

docs: add notes about homepage
Anirudh icyph0x@pm.me
Tue, 12 Jun 2018 11:14:55 +0530
commit

ca62c1052294c4298eb8c7e5cbb252a426185e7e

parent

6c4c22b69615c0d489d80e346c345d682d562e18

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M README.mdREADME.md

@@ -46,14 +46,15 @@ title = ''

author = '' header = '' footer = '' -template = 'index.html' # default is index.html +template = 'index.html' # default is templates/index.html ``` Templating ---------- -Vite uses Jinja2 templating. -**NOTE**: Stylesheets, images and JS can be accessed from the `static` folder. +Vite uses Jinja2 templating, so template files must be placed in a separate `templates/` directory. +**NOTE**: Stylesheets, images and JS can be accessed from the `static` folder. +**ANOTHER NOTE**: `index.html`, i.e. your website's homepage, should be `_index.md` in the `pages/` directory. A basic example would be: ```html

@@ -91,7 +92,7 @@ - [x] Implement a simple HTTP server (*later*)

- [x] Add example site - [x] Basic config (`config.py`) - [ ] Parsing frontmatter (JSON, YAML, TOML) -- [ ] Better support for home page (main `index.html` page) +- [x] Better support for home page (main `index.html` page) ## Credits