Skip to content

Commit

Permalink
Changed structure: one FAQ - one page
Browse files Browse the repository at this point in the history
Signed-off-by: S. Kozyr <[email protected]>
  • Loading branch information
strump committed Dec 15, 2023
1 parent 267915e commit 0eb95db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
3 changes: 1 addition & 2 deletions templates/faq/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 0eb95db

Please sign in to comment.