add a guide topics system
This commit is contained in:
21
app/templates/guides/_layout.html
Normal file
21
app/templates/guides/_layout.html
Normal 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) }}">↑ Back to category</a></li>
|
||||
{% if prev_guide %}
|
||||
<li><a href="{{ prev_guide.url }}">← Previous: {{ prev_guide.title }}</a></li>
|
||||
{% endif %}
|
||||
{% if next_guide %}
|
||||
<li><a href="{{ next_guide.url }}">→ Next: {{ next_guide.title }}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% call() guide_sections() %}
|
||||
{% block guide_content %}
|
||||
{% endblock %}
|
||||
{% endcall %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user