From 42f765366d2b1f2f2323e0ec3b29d09fada07226 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Sun, 22 Dec 2024 00:04:56 +0100 Subject: [PATCH] Lets see what lighthouse says --- app/main.py | 1 + data/Budget/0100_budget_indkøb_priser.md | 2 +- data/Kultur/0200_kultur_unikt.md | 2 +- generated_data.json | 2 +- templates/base_template.html | 12 ++++++------ templates/navigation.html | 2 +- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/main.py b/app/main.py index 4c964d9..2277d80 100644 --- a/app/main.py +++ b/app/main.py @@ -57,6 +57,7 @@ class Application: self.app.mount("/data", CustomStaticFiles(directory="data"), name="data") self.app.mount("/static", CustomStaticFiles(directory="static"), name="static") self.app.mount("/img", CustomStaticFiles(directory="static/images"), name="img") + self.app.mount( "/js", CustomStaticFiles( directory = "static/js" ), name = "js" ) def _include_routers(self): """Include all route controllers.""" diff --git a/data/Budget/0100_budget_indkøb_priser.md b/data/Budget/0100_budget_indkøb_priser.md index c8f50b7..035aa1b 100644 --- a/data/Budget/0100_budget_indkøb_priser.md +++ b/data/Budget/0100_budget_indkøb_priser.md @@ -5,7 +5,7 @@ author: Henrik Jess date: ons 11 dec 23:25:00 CET 2024 summary: Fødevarer er markant billigere i Portugal med få undtagelser som bær og specialvarer. favorite: true -image: images/budget2.jpg +image: img/budget2.jpg category: Økonomi tags: [Portugal, Budget, Økonomi] --- diff --git a/data/Kultur/0200_kultur_unikt.md b/data/Kultur/0200_kultur_unikt.md index 84a7c42..4a3d521 100644 --- a/data/Kultur/0200_kultur_unikt.md +++ b/data/Kultur/0200_kultur_unikt.md @@ -5,7 +5,7 @@ author: Henrik Jess date: tor 12 dec 00:20:00 CET 2024 summary: Portugals fado-musik, historie og madkultur gør landet unikt favorite: false -image: images/pic04.jpg +image: img/pic04.jpg category: Kultur tags: [Portugal, Kultur, Fado, Musik, Historie, Mad, Monumenter] --- diff --git a/generated_data.json b/generated_data.json index babac64..b66a838 100644 --- a/generated_data.json +++ b/generated_data.json @@ -89,7 +89,7 @@ "favorites": [ { "name": "Budget - Indkøb", - "image": "images/budget2.jpg", + "image": "img/budget2.jpg", "description": "Fødevarer er markant billigere i Portugal med få undtagelser som bær og specialvarer.", "path": "Budget" } diff --git a/templates/base_template.html b/templates/base_template.html index a8a35f8..14c1232 100644 --- a/templates/base_template.html +++ b/templates/base_template.html @@ -110,11 +110,11 @@ - - - - - - + + + + + + diff --git a/templates/navigation.html b/templates/navigation.html index f27dad0..6b8d6fc 100644 --- a/templates/navigation.html +++ b/templates/navigation.html @@ -26,7 +26,7 @@ {% for favorite in data.favorites %}
- {{ favorite.name }} + {{ favorite.name }}

{{ favorite.path }}: {{ favorite.description }}