From 3420e18d68f705567180146ffda106db97a76dc3 Mon Sep 17 00:00:00 2001 From: L3D Date: Sun, 21 Jan 2024 23:22:19 +0100 Subject: [PATCH] Create Events page --- assets/favicon.ico | 3 + assets/favicon.png | 3 + assets/favicon.svg | 8 ++ chaoswest.tv.lektorproject | 1 - content/events/36c3/36c3.svg | 151 +++++++++++++++++++++++++++++++ content/events/36c3/contents.lr | 20 ++++ content/events/contents.lr | 5 + databags/navigation.json | 7 ++ models/blog.ini | 11 ++- models/post.ini | 19 ++-- templates/blocks/header.html | 12 ++- templates/blocks/navigation.html | 23 +++-- templates/blog.html | 4 +- templates/macros/blog.html | 27 +++--- templates/macros/pagination.html | 25 ----- templates/page.html | 13 ++- templates/post.html | 6 ++ 17 files changed, 268 insertions(+), 70 deletions(-) create mode 100644 assets/favicon.ico create mode 100644 assets/favicon.png create mode 100644 assets/favicon.svg create mode 100644 content/events/36c3/36c3.svg create mode 100644 content/events/36c3/contents.lr create mode 100644 content/events/contents.lr create mode 100644 templates/post.html diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..72b429b --- /dev/null +++ b/assets/favicon.ico @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d96b9132ba4119fe02546e6323294b43a28d7128c350790dc9d628aef54f19 +size 2565 diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000..006cf2d --- /dev/null +++ b/assets/favicon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d803b5a078387a55fd56f332e49ea89bbffbc6ac62a4d1b6ab63c151742ade5 +size 20893 diff --git a/assets/favicon.svg b/assets/favicon.svg new file mode 100644 index 0000000..73dfcd9 --- /dev/null +++ b/assets/favicon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/chaoswest.tv.lektorproject b/chaoswest.tv.lektorproject index 4bd0092..0c52393 100644 --- a/chaoswest.tv.lektorproject +++ b/chaoswest.tv.lektorproject @@ -1,7 +1,6 @@ [project] name = chaoswest.tv url = https://chaoswest.tv/ -url_style = relative excluded_assets = *.scss upscale = false output_path = temp/builds/chaoswest.tv/ diff --git a/content/events/36c3/36c3.svg b/content/events/36c3/36c3.svg new file mode 100644 index 0000000..e8834e8 --- /dev/null +++ b/content/events/36c3/36c3.svg @@ -0,0 +1,151 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/events/36c3/contents.lr b/content/events/36c3/contents.lr new file mode 100644 index 0000000..8f05831 --- /dev/null +++ b/content/events/36c3/contents.lr @@ -0,0 +1,20 @@ +title: 36c3 +--- +event_end_date: 2019-12-30 +--- +event_start_date: 2019-12-27 +--- +preview: Am 36c3 in Leipzig hat Chaos-West TV in Halle 3 eine Bühne gebaut. Die Vorträge die dort entstanden sind findet man auf [media.ccc.de/c/36c3/ChaosWest](https://media.ccc.de/c/36c3/ChaosWest). +--- +body: + +Am 36c3 in Leipzig hat Chaos-West TV in Halle 3 eine Bühne gebaut. + +## Vorträge +[media.ccc.de/c/36c3/ChaosWest](https://media.ccc.de/c/36c3/ChaosWest) +--- +date: 2019-12-27 +--- +logo: 36c3.svg +--- +logodesc: 36. Chaos Communication Congress diff --git a/content/events/contents.lr b/content/events/contents.lr new file mode 100644 index 0000000..f9f5951 --- /dev/null +++ b/content/events/contents.lr @@ -0,0 +1,5 @@ +_model: blog +--- +title: Veranstaltungen mit Winkekatze TV +--- +body: Chaoswest TV hat Videos auf einigen Veranstaltungen gemacht... diff --git a/databags/navigation.json b/databags/navigation.json index f324827..8e2b686 100644 --- a/databags/navigation.json +++ b/databags/navigation.json @@ -2,6 +2,13 @@ "Über uns": { "href": "/" }, + "Veranstaltungen": { + "href": "/events", + "list_childs": true, + "items": { + "list_namespace": "/events" + } + }, "Kontakt": { "href": "/kontakt" }, diff --git a/models/blog.ini b/models/blog.ini index 5feada2..1b016e5 100644 --- a/models/blog.ini +++ b/models/blog.ini @@ -1,6 +1,6 @@ [model] -name = Blog -label = Blog +name = Events +label = Events hidden = true [fields.title] @@ -10,3 +10,10 @@ type = string [children] model = post order_by = -event_start_date,title + +[fields.body] +label = Body +type = pythonmarkdown + +[pagination] +enabled = True diff --git a/models/post.ini b/models/post.ini index f85c063..7e5b3e9 100644 --- a/models/post.ini +++ b/models/post.ini @@ -8,18 +8,25 @@ label = Title type = string size = large -[fiels.tags] -label = Tags -type = strings - [fields.date] label = Date type = date +[fields.logo] +lable = Event Logo +width = 1/2 +type = select +source = record.attachments.images + +[fields.logodesc] +label = Event Description +width = 1/2 +type = string + [fields.preview] -label = Preview +label = Preview for displayed on index page type = pythonmarkdown [fields.body] -label = Body +label = Body to be showed here type = pythonmarkdown diff --git a/templates/blocks/header.html b/templates/blocks/header.html index 294b6f9..7cf1ace 100644 --- a/templates/blocks/header.html +++ b/templates/blocks/header.html @@ -1,10 +1,12 @@ {% block header %}
+ - - - - + + + + +
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/blocks/navigation.html b/templates/blocks/navigation.html index 0197529..444db59 100644 --- a/templates/blocks/navigation.html +++ b/templates/blocks/navigation.html @@ -7,13 +7,18 @@
  • - {{- title -}} + {{ title }} {% else %}
  • - {{ title }} + + {{ title }} +