From bae6e34c9119750b2cba2a2ce6d88e9f8c895900 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 1 Apr 2023 21:18:29 +0200 Subject: Switch from MariaDB to files Using a database is way more complex (see the commit statistics of this commit) than using files to store recipe data. Also administration and usage is simpler. --- data/storage/recipes/0/text | 3 ++- data/templates/recipe.html | 2 +- data/templates/recipe_edit.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'data') diff --git a/data/storage/recipes/0/text b/data/storage/recipes/0/text index 208828a..3eb81ce 100644 --- a/data/storage/recipes/0/text +++ b/data/storage/recipes/0/text @@ -2,5 +2,6 @@ Important steps: -- cook it +- cook it smoothly +- serve it - eat it diff --git a/data/templates/recipe.html b/data/templates/recipe.html index b1fc550..972a8bf 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -15,7 +15,7 @@
- {{.RenderedDescriptionMarkdown}} + {{.Html}} {{ template "footer.html" }} diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index 4860c6a..9069d4a 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -15,7 +15,7 @@

Recipe ID: {{.Id}}

-
{{.DescriptionMarkdown}}
+
{{.Text}}
-- cgit v1.2.3-70-g09d2