Simple static site powering Syncroplicity.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
- 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/ chronosite:/opt/drchromopage/chronosite/output
The static site generator is build using Flask + Jinja2 and wget to save the output as static html.