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 %} {% 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 %} {% block post_content %}
{% if not request.is_preview %} {% if not request.is_preview %}
{% include "common/shareon.html" %} {% include "common/shareon.html" %}

View file

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

View file

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