summaryrefslogtreecommitdiffstats
path: root/templates/article_header.html
diff options
context:
space:
mode:
authorSylvain Gauthier <s94.gauthier@laposte.net>2021-03-12 08:46:07 +1100
committerSylvain Gauthier <s94.gauthier@laposte.net>2021-03-15 10:34:59 +1100
commit9e997452760399c4cc8cee7a1d39952f8112995c (patch)
tree768dd53fe6501d2bd0b6e8b619fa56f8b76d4ab8 /templates/article_header.html
parentfeb5d6ca8e96c579751788b676b14e72d51f84df (diff)
downloadbased.cooking-9e997452760399c4cc8cee7a1d39952f8112995c.tar
based.cooking-9e997452760399c4cc8cee7a1d39952f8112995c.tar.gz
based.cooking-9e997452760399c4cc8cee7a1d39952f8112995c.tar.lz
based.cooking-9e997452760399c4cc8cee7a1d39952f8112995c.tar.xz
based.cooking-9e997452760399c4cc8cee7a1d39952f8112995c.zip
use a clean Makefile system to build/deploy site
This way, we get dependency/smart update for free. We don't need to rebuild all the pages everytime a new one is added. The author, date of creation and date of revision are extracted from git information. The index is generated automatically, so adding a recipe is literally just adding a markdown file in src/. The deployment system uses rsync to push only newer data to the server. There is a tag system that you can add at the end of each recipe file. Tag pages are generated statically that contain all recipes with a given tag. It introduces more HTML template files, though. To build website, type make build To deploy it, make deploy To clean everything, make clean
Diffstat (limited to 'templates/article_header.html')
-rw-r--r--templates/article_header.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/article_header.html b/templates/article_header.html
new file mode 100644
index 000000000..e66f98c99
--- /dev/null
+++ b/templates/article_header.html
@@ -0,0 +1,2 @@
+<p><a href=".">index</a></p>
+<p><i>Recipe posted on: $DATE_POSTED, last edited on: $DATE_EDITED, written by: $AUTHOR</i></p>