mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2025-12-19 09:02:59 +00:00
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
This commit is contained in:
1
templates/article_entry.html
Normal file
1
templates/article_entry.html
Normal file
@@ -0,0 +1 @@
|
||||
<li><a href="$URL">$TITLE</a></li>
|
||||
0
templates/article_footer.html
Normal file
0
templates/article_footer.html
Normal file
2
templates/article_header.html
Normal file
2
templates/article_header.html
Normal file
@@ -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>
|
||||
1
templates/article_list_footer.html
Normal file
1
templates/article_list_footer.html
Normal file
@@ -0,0 +1 @@
|
||||
</ul>
|
||||
2
templates/article_list_header.html
Normal file
2
templates/article_list_header.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<h2>Recipes</h2>
|
||||
<ul>
|
||||
0
templates/article_separator.html
Normal file
0
templates/article_separator.html
Normal file
7
templates/footer.html
Normal file
7
templates/footer.html
Normal file
@@ -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>
|
||||
12
templates/header.html
Normal file
12
templates/header.html
Normal file
@@ -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>
|
||||
0
templates/index_footer.html
Normal file
0
templates/index_footer.html
Normal file
1
templates/index_header.html
Normal file
1
templates/index_header.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>Only Based cooking. No ads, no tracking, nothing but based cooking.</p>
|
||||
1
templates/tag_entry.html
Normal file
1
templates/tag_entry.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="$URL">$NAME</a>
|
||||
0
templates/tag_index_footer.html
Normal file
0
templates/tag_index_footer.html
Normal file
2
templates/tag_index_header.html
Normal file
2
templates/tag_index_header.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<p><a href=".">index</a></p>
|
||||
<p><i>Filtering recipes tagged:</i> <b>$TAGS</b></p>
|
||||
1
templates/tag_list_footer.html
Normal file
1
templates/tag_list_footer.html
Normal file
@@ -0,0 +1 @@
|
||||
</i></p>
|
||||
1
templates/tag_list_header.html
Normal file
1
templates/tag_list_header.html
Normal file
@@ -0,0 +1 @@
|
||||
<p><i>Tags:
|
||||
1
templates/tag_separator.html
Normal file
1
templates/tag_separator.html
Normal file
@@ -0,0 +1 @@
|
||||
,
|
||||
Reference in New Issue
Block a user