diff options
author | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-12 08:46:07 +1100 |
---|---|---|
committer | Sylvain Gauthier <s94.gauthier@laposte.net> | 2021-03-15 10:34:59 +1100 |
commit | 9e997452760399c4cc8cee7a1d39952f8112995c (patch) | |
tree | 768dd53fe6501d2bd0b6e8b619fa56f8b76d4ab8 /templates | |
parent | feb5d6ca8e96c579751788b676b14e72d51f84df (diff) | |
download | based.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')
-rw-r--r-- | templates/article_entry.html | 1 | ||||
-rw-r--r-- | templates/article_footer.html | 0 | ||||
-rw-r--r-- | templates/article_header.html | 2 | ||||
-rw-r--r-- | templates/article_list_footer.html | 1 | ||||
-rw-r--r-- | templates/article_list_header.html | 2 | ||||
-rw-r--r-- | templates/article_separator.html | 0 | ||||
-rw-r--r-- | templates/footer.html | 7 | ||||
-rw-r--r-- | templates/header.html | 12 | ||||
-rw-r--r-- | templates/index_footer.html | 0 | ||||
-rw-r--r-- | templates/index_header.html | 1 | ||||
-rw-r--r-- | templates/tag_entry.html | 1 | ||||
-rw-r--r-- | templates/tag_index_footer.html | 0 | ||||
-rw-r--r-- | templates/tag_index_header.html | 2 | ||||
-rw-r--r-- | templates/tag_list_footer.html | 1 | ||||
-rw-r--r-- | templates/tag_list_header.html | 1 | ||||
-rw-r--r-- | templates/tag_separator.html | 1 |
16 files changed, 32 insertions, 0 deletions
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 @@ +<li><a href="$URL">$TITLE</a></li> diff --git a/templates/article_footer.html b/templates/article_footer.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/article_footer.html 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> 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 @@ +</ul> 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 @@ +<h2>Recipes</h2> +<ul> diff --git a/templates/article_separator.html b/templates/article_separator.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/article_separator.html diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 000000000..b7cd6bfdb --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,7 @@ +<p>This website is a fork from <a href="https://based.cooking">Luke Smith's Based Cooking</a></p> +<div class="footer"> + <hr/> + <a href="./rss.xml">RSS</a> + <a href="./atom.xml">atom</a> +</div> +</body></html> diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 000000000..9b6f9f400 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="UTF-8"> + <link rel="stylesheet" href="./style.css"> + <title>$TITLE</title> + </head> + <body> + <div class="banner"> + <h1>🍳 Based Cooking 🍲</h1> + <hr/> + </div> diff --git a/templates/index_footer.html b/templates/index_footer.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/index_footer.html diff --git a/templates/index_header.html b/templates/index_header.html new file mode 100644 index 000000000..a222e9a6e --- /dev/null +++ b/templates/index_header.html @@ -0,0 +1 @@ +<p>Only Based cooking. No ads, no tracking, nothing but based cooking.</p> diff --git a/templates/tag_entry.html b/templates/tag_entry.html new file mode 100644 index 000000000..cb23fee0a --- /dev/null +++ b/templates/tag_entry.html @@ -0,0 +1 @@ +<a href="$URL">$NAME</a>
\ No newline at end of file diff --git a/templates/tag_index_footer.html b/templates/tag_index_footer.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/tag_index_footer.html diff --git a/templates/tag_index_header.html b/templates/tag_index_header.html new file mode 100644 index 000000000..2d7315301 --- /dev/null +++ b/templates/tag_index_header.html @@ -0,0 +1,2 @@ +<p><a href=".">index</a></p> +<p><i>Filtering recipes tagged:</i> <b>$TAGS</b></p> diff --git a/templates/tag_list_footer.html b/templates/tag_list_footer.html new file mode 100644 index 000000000..38bf9e7de --- /dev/null +++ b/templates/tag_list_footer.html @@ -0,0 +1 @@ +</i></p> diff --git a/templates/tag_list_header.html b/templates/tag_list_header.html new file mode 100644 index 000000000..ae3a7595c --- /dev/null +++ b/templates/tag_list_header.html @@ -0,0 +1 @@ +<p><i>Tags: diff --git a/templates/tag_separator.html b/templates/tag_separator.html new file mode 100644 index 000000000..c3a6e485b --- /dev/null +++ b/templates/tag_separator.html @@ -0,0 +1 @@ +,
\ No newline at end of file |