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:24:49 +0800
committerPeter Cai <[email protected]>2020-04-14 21:24:49 +0800
commitae525c3a0742ae81586a88f0c3bde9f41a3b96d0 (patch)
tree61e4532d1f8c264093bed212c132f39fa38691d5
parent1ddd5866947c3d318e6ef9038bb771ce617df8a7 (diff)
downloadpaprika-ae525c3a0742ae81586a88f0c3bde9f41a3b96d0.tar.gz
theme: default: support overriding itte page path per-post
-rw-r--r--theme/default/post.hbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/default/post.hbs b/theme/default/post.hbs
index d13fcf5..0f143e5 100644
--- a/theme/default/post.hbs
+++ b/theme/default/post.hbs
@@ -10,7 +10,7 @@
{{{ content }}}
{{ #unless theme_config.no_itte }}
{{ #if blog.theme_config.itte_url }}
- <section id="itte-thread" data-path="{{ page.base_url }}{{ page.pathname }}">
+ <section id="itte-thread" data-path="{{ #unless theme_config.itte_page_path }}{{ page.base_url }}{{ page.pathname }}{{ else }}{{ theme_config.itte_page_path }}{{ /unless }}">
</section>
<script src="{{ blog.theme_config.itte_url }}/itte.js"></script>
{{ /if }}