Changed structure: one FAQ - one page

Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
Sergiy Kozyr 2023-12-15 22:06:15 +02:00
parent 7add7b9e1d
commit be328f2624
Signed by: strump
GPG key ID: C622E5563CAC205D
2 changed files with 7 additions and 2 deletions

View file

@ -84,6 +84,12 @@
</header>
<main>
{% if page.taxonomies and page.taxonomies.faq %}{# Show FAQ breadcrumbs #}
F.A.Q. ::
{% for faqCategory in page.taxonomies.faq %}
<a href="{{ get_taxonomy_url(kind="faq", name=faqCategory) }}">{{ faqCategory }}</a>
{% endfor %}
{% endif %}
{% block content %}{% endblock %}
</main>

View file

@ -7,7 +7,6 @@
{% block content %}
<h1>F.A.Q. - {{ term.name }}</h1>
{%- for faq_page in term.pages | sort(attribute="extra.order") -%}
<h3>{{ faq_page.title }}</h3>
{{ faq_page.content | safe }}
<h3><a href="{{ faq_page.permalink }}">{{ faq_page.title }}</a></h3>
{%- endfor -%}
{% endblock %}