diff --git a/README.md b/README.md index 3097113..7e30de4 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ Configuration: theme_config.json ```json { "avatar_url": "", + "itte_url": "https://", "nav_links": [ { "name": "", @@ -119,6 +120,8 @@ Configuration: theme_config.json `nav_links`: a set of navigation links to be displayed in the sidebar (or at the top on mobile). You can set `"target": "_blank"` to make the link open in new tabs, while omitting this attribute will make the link behave as a normal link, that is, open in the current page. +`itte_url`: OPTIONAL. A URL to your [Itte](https://github.com/PeterCxy/itte) instance, the comment system. + Installation in Standard Notes === diff --git a/theme/default/post.hbs b/theme/default/post.hbs index f472751..348c7fc 100644 --- a/theme/default/post.hbs +++ b/theme/default/post.hbs @@ -8,6 +8,11 @@

{{ title }}

{{ format_date timestamp "%e %b, %Y" }} {{{ content }}} + {{ #if blog.theme_config.itte_url }} +
+
+ + {{ /if }}