Add comments and similar content to TOC

This commit is contained in:
Jake Howard 2024-06-28 18:08:10 +01:00
parent 1421d19fdc
commit d242f94024
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,16 @@
{% load wagtail_cache navbar_tags %}
{% block post_toc %}
<hr class="dropdown-divider" />
<li>
<a href="#similar-content">Similar content</a>
</li>
<li>
<a href="#comments">Comments</a>
</li>
{% endblock %}
{% block post_content %}
{% if not request.is_preview %}
{% include "common/shareon.html" %}

View File

@ -10,6 +10,13 @@
{% endif %}
{% endblock %}
{% block post_toc %}
<hr class="dropdown-divider" />
<li>
<a href="#comments">Comments</a>
</li>
{% endblock %}
{% block post_content %}
{% if not request.is_preview %}
{% include "common/shareon.html" %}

View File

@ -56,6 +56,7 @@
{% for toc_item in page.table_of_contents %}
{% include "common/toc-item.html" %}
{% endfor %}
{% block post_toc %}{% endblock %}
</ul>
</div>
</div>