updated pages view routes and templates to used content module

This commit is contained in:
2023-09-10 19:55:42 -04:00
parent 61809acf44
commit 9610d995de
4 changed files with 62 additions and 109 deletions

View File

@@ -1,6 +1,6 @@
{% extends "jinja/types/page.html" %}
{% set title %}FAQ{% endset %}
{% set title %}{{ page.get_title() }}{% endset %}
{% block content %}
<div class="row text-center mb-2">
@@ -9,20 +9,20 @@
</h1>
</div>
{% for faq in config.FAQS.items() %}
{% for faq in page.get_content() %}
<div class="row">
<div class="col-1">
</div>
<a class="btn btn-primary text-center" data-bs-toggle="collapse"
href="#{{ faq[1][0] }}" role="button" aria-expanded="false"
aria-controls="{{ faq[1][0] }}">
<h2>{{ faq[0] }}</h2>
href="#{{ page.get_content()[faq]['tag'] }}" role="button" aria-expanded="false"
aria-controls="{{ page.get_content()[faq]['tag'] }}">
<h2>{{ faq }}</h2>
</a>
<div class="collapse" id="{{ faq[1][0] }}">
<div class="collapse" id="{{ page.get_content()[faq]['tag'] }}">
<div class="card card-body text-center">
{{ faq[1][1] }}
{{ page.get_content()[faq]['answer'] }}
</div>
</div>