From 9e997452760399c4cc8cee7a1d39952f8112995c Mon Sep 17 00:00:00 2001 From: Sylvain Gauthier Date: Fri, 12 Mar 2021 08:46:07 +1100 Subject: 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 --- templates/article_entry.html | 1 + templates/article_footer.html | 0 templates/article_header.html | 2 ++ templates/article_list_footer.html | 1 + templates/article_list_header.html | 2 ++ templates/article_separator.html | 0 templates/footer.html | 7 +++++++ templates/header.html | 12 ++++++++++++ templates/index_footer.html | 0 templates/index_header.html | 1 + templates/tag_entry.html | 1 + templates/tag_index_footer.html | 0 templates/tag_index_header.html | 2 ++ templates/tag_list_footer.html | 1 + templates/tag_list_header.html | 1 + templates/tag_separator.html | 1 + 16 files changed, 32 insertions(+) create mode 100644 templates/article_entry.html create mode 100644 templates/article_footer.html create mode 100644 templates/article_header.html create mode 100644 templates/article_list_footer.html create mode 100644 templates/article_list_header.html create mode 100644 templates/article_separator.html create mode 100644 templates/footer.html create mode 100644 templates/header.html create mode 100644 templates/index_footer.html create mode 100644 templates/index_header.html create mode 100644 templates/tag_entry.html create mode 100644 templates/tag_index_footer.html create mode 100644 templates/tag_index_header.html create mode 100644 templates/tag_list_footer.html create mode 100644 templates/tag_list_header.html create mode 100644 templates/tag_separator.html (limited to 'templates') diff --git a/templates/article_entry.html b/templates/article_entry.html new file mode 100644 index 000000000..4c149eb40 --- /dev/null +++ b/templates/article_entry.html @@ -0,0 +1 @@ +
  • $TITLE
  • diff --git a/templates/article_footer.html b/templates/article_footer.html new file mode 100644 index 000000000..e69de29bb 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 @@ +

    index

    +

    Recipe posted on: $DATE_POSTED, last edited on: $DATE_EDITED, written by: $AUTHOR

    diff --git a/templates/article_list_footer.html b/templates/article_list_footer.html new file mode 100644 index 000000000..3d3a44c9e --- /dev/null +++ b/templates/article_list_footer.html @@ -0,0 +1 @@ + diff --git a/templates/article_list_header.html b/templates/article_list_header.html new file mode 100644 index 000000000..54ba16f74 --- /dev/null +++ b/templates/article_list_header.html @@ -0,0 +1,2 @@ +

    Recipes

    +