Changed structure: one FAQ - one page
Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
parent
7add7b9e1d
commit
be328f2624
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue