diff options
author | Peter Cai <[email protected]> | 2020-04-14 21:11:39 +0800 |
---|---|---|
committer | Peter Cai <[email protected]> | 2020-04-14 21:11:39 +0800 |
commit | b03a25d82a563117112f964ee8ff5ad99c051e6f (patch) | |
tree | 595e62b22d4a004e076596452e510240464e5d65 | |
parent | d6b479ec15616ae48dfcdceaa254c2bfa86e92bf (diff) | |
download | paprika-b03a25d82a563117112f964ee8ff5ad99c051e6f.tar.gz |
theme: default: support disabling itte for individual posts
via per-post theme config
-rw-r--r-- | theme/default/post.hbs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/theme/default/post.hbs b/theme/default/post.hbs index 348c7fc..d13fcf5 100644 --- a/theme/default/post.hbs +++ b/theme/default/post.hbs @@ -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"> |