theme: default: support disabling itte for individual posts
via per-post theme config
This commit is contained in:
parent
d6b479ec15
commit
b03a25d82a
|
@ -8,11 +8,13 @@
|
||||||
<h1 id="paprika-post-title">{{ title }}</h1>
|
<h1 id="paprika-post-title">{{ title }}</h1>
|
||||||
<span class="date">{{ format_date timestamp "%e %b, %Y" }}</span>
|
<span class="date">{{ format_date timestamp "%e %b, %Y" }}</span>
|
||||||
{{{ content }}}
|
{{{ content }}}
|
||||||
|
{{ #unless theme_config.no_itte }}
|
||||||
{{ #if blog.theme_config.itte_url }}
|
{{ #if blog.theme_config.itte_url }}
|
||||||
<section id="itte-thread" data-path="{{ page.base_url }}{{ page.pathname }}">
|
<section id="itte-thread" data-path="{{ page.base_url }}{{ page.pathname }}">
|
||||||
</section>
|
</section>
|
||||||
<script src="{{ blog.theme_config.itte_url }}/itte.js"></script>
|
<script src="{{ blog.theme_config.itte_url }}/itte.js"></script>
|
||||||
{{ /if }}
|
{{ /if }}
|
||||||
|
{{ /unless }}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
<div class="toc-wrapper hidden">
|
<div class="toc-wrapper hidden">
|
||||||
|
|
Loading…
Reference in New Issue