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 /data | |
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 'data')
21 files changed, 55 insertions, 0 deletions
diff --git a/data/pix/beef-goulash.webp b/data/pix/beef-goulash.webp Binary files differnew file mode 100644 index 000000000..1f9b1ff0b --- /dev/null +++ b/data/pix/beef-goulash.webp diff --git a/data/pix/cacio-e-pepe.webp b/data/pix/cacio-e-pepe.webp Binary files differnew file mode 100644 index 000000000..6921d9f52 --- /dev/null +++ b/data/pix/cacio-e-pepe.webp diff --git a/data/pix/carbonara.webp b/data/pix/carbonara.webp Binary files differnew file mode 100644 index 000000000..da6c54980 --- /dev/null +++ b/data/pix/carbonara.webp diff --git a/data/pix/cheesy-meatballs.webp b/data/pix/cheesy-meatballs.webp Binary files differnew file mode 100644 index 000000000..2bb0b4f39 --- /dev/null +++ b/data/pix/cheesy-meatballs.webp diff --git a/data/pix/country-skillet.webp b/data/pix/country-skillet.webp Binary files differnew file mode 100644 index 000000000..a0ad2c315 --- /dev/null +++ b/data/pix/country-skillet.webp diff --git a/data/pix/creamy-mashed-potatoes.webp b/data/pix/creamy-mashed-potatoes.webp Binary files differnew file mode 100644 index 000000000..d496bc3a7 --- /dev/null +++ b/data/pix/creamy-mashed-potatoes.webp diff --git a/data/pix/croutons.webp b/data/pix/croutons.webp Binary files differnew file mode 100644 index 000000000..e77932845 --- /dev/null +++ b/data/pix/croutons.webp diff --git a/data/pix/csalad.webp b/data/pix/csalad.webp Binary files differnew file mode 100644 index 000000000..bf37a2fe6 --- /dev/null +++ b/data/pix/csalad.webp diff --git a/data/pix/fried-anglerfish-fillet-00.webp b/data/pix/fried-anglerfish-fillet-00.webp Binary files differnew file mode 100644 index 000000000..6b85d02ac --- /dev/null +++ b/data/pix/fried-anglerfish-fillet-00.webp diff --git a/data/pix/fried-anglerfish-fillet-01.webp b/data/pix/fried-anglerfish-fillet-01.webp Binary files differnew file mode 100644 index 000000000..a95ebab0c --- /dev/null +++ b/data/pix/fried-anglerfish-fillet-01.webp diff --git a/data/pix/guacamole.webp b/data/pix/guacamole.webp Binary files differnew file mode 100644 index 000000000..690cd7c59 --- /dev/null +++ b/data/pix/guacamole.webp diff --git a/data/pix/japanese-noodle-soup.webp b/data/pix/japanese-noodle-soup.webp Binary files differnew file mode 100644 index 000000000..85ca3267f --- /dev/null +++ b/data/pix/japanese-noodle-soup.webp diff --git a/data/pix/merchants-buckwheat.webp b/data/pix/merchants-buckwheat.webp Binary files differnew file mode 100644 index 000000000..d294c476a --- /dev/null +++ b/data/pix/merchants-buckwheat.webp diff --git a/data/pix/pan-seared-chicken.webp b/data/pix/pan-seared-chicken.webp Binary files differnew file mode 100644 index 000000000..e030e100d --- /dev/null +++ b/data/pix/pan-seared-chicken.webp diff --git a/data/pix/parmesan-potatoes.webp b/data/pix/parmesan-potatoes.webp Binary files differnew file mode 100644 index 000000000..42c81cd16 --- /dev/null +++ b/data/pix/parmesan-potatoes.webp diff --git a/data/pix/pasta-navy-style.webp b/data/pix/pasta-navy-style.webp Binary files differnew file mode 100644 index 000000000..2836d66f5 --- /dev/null +++ b/data/pix/pasta-navy-style.webp diff --git a/data/pix/refried-beans.webp b/data/pix/refried-beans.webp Binary files differnew file mode 100644 index 000000000..9f49af62c --- /dev/null +++ b/data/pix/refried-beans.webp diff --git a/data/pix/sunday-milkshake.webp b/data/pix/sunday-milkshake.webp Binary files differnew file mode 100644 index 000000000..bdb90743e --- /dev/null +++ b/data/pix/sunday-milkshake.webp diff --git a/data/pix/sweet-potato-fries.webp b/data/pix/sweet-potato-fries.webp Binary files differnew file mode 100644 index 000000000..62bec8ab7 --- /dev/null +++ b/data/pix/sweet-potato-fries.webp diff --git a/data/pix/tuscan-style-pork-roast.webp b/data/pix/tuscan-style-pork-roast.webp Binary files differnew file mode 100644 index 000000000..eaaea0f39 --- /dev/null +++ b/data/pix/tuscan-style-pork-roast.webp diff --git a/data/style.css b/data/style.css new file mode 100644 index 000000000..2e6aa32ae --- /dev/null +++ b/data/style.css @@ -0,0 +1,55 @@ +body { + max-width: 800px ; + margin: auto ; + padding: 0 16px ; + margin-bottom: 500px ; +} + +h1 { + text-align: center ; +} + +footer { + text-align: center ; +} + +img { + max-width: 600px ; + width: 100% ; + margin: auto ; + display: block ; +} + +code { + overflow-wrap: break-word ; + color: lime ; +} + +li img { + max-width: 1em ; + max-height: 1em ; + display: inline ; +} + +@media (prefers-color-scheme: dark) { + body { + background: #151515 ; + color: white ; + } + a { + color: lightblue ; + } + a:visited { + color: gray ; + } + h2 { + color: tomato ; + } +} + +@media print { + a[href] { + text-decoration: none ; + color: black ; + } +} |