Simple static site powering Monadical.com.
Static HTML is produced using a short custom website generator powered by Flask, Jinja2, & wget.
All metadata is stored in content.json
.
Templates are in: templates/
Static files are in: static/
brew install wget python3 # only needed on mac
pip3 install flask
- upload post as markdown to https://docs.oddslingers.com
- click "Publish", and get the public url, like
https://docs.oddslingers.com/s/Skcz_hUhM
- edit
content.json
to add metadata for new post, including public url - rebuild site
- new post should appear on articles page
- edit 'content.json' to add metadata for new page, including url
- add new template
html
file totemplates/
- add link to new page in navbar: see
base.html
<nav>
section - rebuild site
- new page should appear in navbar
- edit 'content.json' to reflect new metadata
- edit any relevant templates
- rebuild site
- new page should appear in navbar
- edit
base.html
,static/main.css
,content.json
and any other relevant templates - rebuild site
- new changes should appear on site
./server
# or with auto-reloading
env FLASK_DEBUG=True ./server
./server --pages
./server --posts
./build
Static HTMML output will be produced in output/
, and can be rsyned to a server using build script or manually with:
rsync -r output/ monadical.com:/opt/monadical.com/output
The static site generator is build using Flask + Jinja2 and wget to save the output as static html.