theme: default: support overriding itte page path per-post

This commit is contained in:
Peter Cai 2020-04-14 21:24:49 +08:00
parent 1ddd586694
commit ae525c3a07
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}