theme: default: support disabling itte for individual posts

via per-post theme config
This commit is contained in:
Peter Cai 2020-04-14 21:11:39 +08:00
parent d6b479ec15
commit b03a25d82a
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 2 additions and 0 deletions

View File

@ -8,11 +8,13 @@
<h1 id="paprika-post-title">{{ title }}</h1>
<span class="date">{{ format_date timestamp "%e %b, %Y" }}</span>
{{{ content }}}
{{ #unless theme_config.no_itte }}
{{ #if blog.theme_config.itte_url }}
<section id="itte-thread" data-path="{{ page.base_url }}{{ page.pathname }}">
</section>
<script src="{{ blog.theme_config.itte_url }}/itte.js"></script>
{{ /if }}
{{ /unless }}
</article>
</div>
<div class="toc-wrapper hidden">