Add comments and similar content to TOC
This commit is contained in:
parent
1421d19fdc
commit
d242f94024
3 changed files with 18 additions and 0 deletions
|
@ -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" %}
|
||||||
|
|
|
@ -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" %}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue