From be328f26248d06fea40871b2d72567860b5a8a01 Mon Sep 17 00:00:00 2001 From: "S. Kozyr" Date: Fri, 15 Dec 2023 22:06:15 +0200 Subject: [PATCH] Changed structure: one FAQ - one page Signed-off-by: S. Kozyr --- templates/base.html | 6 ++++++ templates/faq/single.html | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/base.html b/templates/base.html index 7e24fa28..cff855a3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -84,6 +84,12 @@
+ {% if page.taxonomies and page.taxonomies.faq %}{# Show FAQ breadcrumbs #} + F.A.Q. :: + {% for faqCategory in page.taxonomies.faq %} + {{ faqCategory }} + {% endfor %} + {% endif %} {% block content %}{% endblock %}
diff --git a/templates/faq/single.html b/templates/faq/single.html index 5acde972..67776887 100644 --- a/templates/faq/single.html +++ b/templates/faq/single.html @@ -7,7 +7,6 @@ {% block content %}

F.A.Q. - {{ term.name }}

{%- for faq_page in term.pages | sort(attribute="extra.order") -%} -

{{ faq_page.title }}

- {{ faq_page.content | safe }} +

{{ faq_page.title }}

{%- endfor -%} {% endblock %}