add a guide topics system

This commit is contained in:
2025-12-05 13:53:21 +03:00
parent 65abea2093
commit db677abaa5
17 changed files with 405 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
{% extends 'base.html' %}
{% from 'common/macros.html' import guide_sections with context %}
{% block title %}guide - {{ guide.title }}{% endblock %}
{% block content %}
<div class="darkbg" id="top">
<h1 class="thread-title">Guide: {{ guide.title }}</h1>
<ul class="horizontal">
<li><a href="{{ url_for('guides.category_index', category=category) }}">&uarr; Back to category</a></li>
{% if prev_guide %}
<li><a href="{{ prev_guide.url }}">&larr; Previous: {{ prev_guide.title }}</a></li>
{% endif %}
{% if next_guide %}
<li><a href="{{ next_guide.url }}">&rarr; Next: {{ next_guide.title }}</a></li>
{% endif %}
</ul>
</div>
{% call() guide_sections() %}
{% block guide_content %}
{% endblock %}
{% endcall %}
{% endblock %}