To install dependencies: pipenv install --dev
Open a shell with pipenv shell
We asume the commands are run in a pipenv shell. If not, you must prefix each command with pipenv run ...
./fr.sh
will run the app in development mode
(run.py
was a try to livereload the app which didn't work)
python build.py
will generate a simplertimes/build directory with the static site
- The post can be tested creating a
simplertimes/templates/editing_post.html
and uncomenting{% include "editing_post.html" %}
inindex.html
at the same directory - Once edited, it must be included by hand on the database (table
posts
) - Then you can comment againt the code on
index.html
and build the static app.
- To add a tag for a post:
git tag -a <slug> <commit> -m=""
- To show tags in chronological order:
git log --tags --simplify-by-decoration --pretty="format:%ci %d"
Remember to git push --tags
- Pagination on main page
-
Use sqlite3 with flask: https://flask.palletsprojects.com/en/1.1.x/patterns/sqlite3/
-
Define and access the database: https://flask.palletsprojects.com/en/1.1.x/tutorial/database/