From 3ca9e5ddc276dd70b82cbd01effeb52795f90d29 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 12:54:53 +0100 Subject: [PATCH 1/7] sitemap --- content/u/sitemap/contents.lr | 3 +++ templates/sitemap.html | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 content/u/sitemap/contents.lr create mode 100644 templates/sitemap.html diff --git a/content/u/sitemap/contents.lr b/content/u/sitemap/contents.lr new file mode 100644 index 0000000..3802b58 --- /dev/null +++ b/content/u/sitemap/contents.lr @@ -0,0 +1,3 @@ +_template: sitemap.html +--- +_model: none diff --git a/templates/sitemap.html b/templates/sitemap.html new file mode 100644 index 0000000..62a08e8 --- /dev/null +++ b/templates/sitemap.html @@ -0,0 +1,20 @@ +{% extends "layout-2020.html" %} +{% block title %}Sitemap{% endblock %} +{% block body %} +
+
+
+
    + {% for page in [site.root] if page.record_label recursive %} +
  • {{ page.record_label }} + {% if page.children %} +
      {{ loop(page.children|sort(attribute='path')) }}
    + {% endif %} +
  • + {% endfor %} +
+
+
+
+ +{% endblock %} From 7e17c478385f64e10ddccb44d708336dc966621a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 13:02:33 +0100 Subject: [PATCH 2/7] adjust block for sitemap template --- templates/sitemap.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/sitemap.html b/templates/sitemap.html index 62a08e8..3d61193 100644 --- a/templates/sitemap.html +++ b/templates/sitemap.html @@ -1,6 +1,6 @@ {% extends "layout-2020.html" %} {% block title %}Sitemap{% endblock %} -{% block body %} +{% block content %}
From d87e8a419fb0e006a505c12a0aff837c3495b20d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 13:08:03 +0100 Subject: [PATCH 3/7] remove unused about page --- content/u/about/contents.lr | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 content/u/about/contents.lr diff --git a/content/u/about/contents.lr b/content/u/about/contents.lr deleted file mode 100644 index 9edb4d5..0000000 --- a/content/u/about/contents.lr +++ /dev/null @@ -1,7 +0,0 @@ -title: About this Website ---- -body: - -This is a website that was made with the Lektor quickstart. - -And it does not contain a lot of information. From c5fce258e6164d220791ad350855a95f095b1f85 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 13:21:04 +0100 Subject: [PATCH 4/7] adjust products model to include the title in the name --- models/products.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/products.ini b/models/products.ini index 31b271f..c45a5e2 100644 --- a/models/products.ini +++ b/models/products.ini @@ -1,6 +1,6 @@ [model] name = Products -label = Products +label = {{ this.title }} hidden = yes [fields.title] From b63a855b9bbb4a3ff6f4245501ed16304be4a46d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 13:22:48 +0100 Subject: [PATCH 5/7] hide comics (they are not up-to-date) --- content/u/penguincomics/contents.lr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/u/penguincomics/contents.lr b/content/u/penguincomics/contents.lr index 1b64227..9976617 100644 --- a/content/u/penguincomics/contents.lr +++ b/content/u/penguincomics/contents.lr @@ -1,3 +1,7 @@ _model: comics --- title: Penguin Comics +--- +_discoverable: no +--- +_hidden: yes From e00a9d1651b09b3d4b9d2ee8a483a2be89f39440 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 13:35:57 +0100 Subject: [PATCH 6/7] fix offers / label --- models/offers.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/offers.ini b/models/offers.ini index 09b79e8..55d20b1 100644 --- a/models/offers.ini +++ b/models/offers.ini @@ -1,6 +1,6 @@ [model] name = Offers -label = Offers +label = {{ this.title }} hidden = yes [fields.title] From 2d2d583b48449643ec308859800f0a54c39939c5 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 3 Dec 2020 14:33:46 +0100 Subject: [PATCH 7/7] ++sitemap in the footer --- templates/layout-2020.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/layout-2020.html b/templates/layout-2020.html index d87afef..d943d23 100644 --- a/templates/layout-2020.html +++ b/templates/layout-2020.html @@ -148,7 +148,10 @@
Copyright ungleich - glarus ag. All prices excluding VAT if not specified otherwise. + glarus ag. All prices excluding VAT if not specified + otherwise. Looking for an overview? Checkout the + sitemap. +