index : paprika

A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes

diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-04-14 21:11:39 +0800
committerPeter Cai <[email protected]>2020-04-14 21:11:39 +0800
commitb03a25d82a563117112f964ee8ff5ad99c051e6f (patch)
tree595e62b22d4a004e076596452e510240464e5d65
parentd6b479ec15616ae48dfcdceaa254c2bfa86e92bf (diff)
downloadpaprika-b03a25d82a563117112f964ee8ff5ad99c051e6f.tar.gz
theme: default: support disabling itte for individual posts
via per-post theme config
-rw-r--r--theme/default/post.hbs2
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">