diff options
Diffstat (limited to 'templates/page.html')
| -rw-r--r-- | templates/page.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html index 7b645ca..e002b31 100644 --- a/templates/page.html +++ b/templates/page.html @@ -30,6 +30,12 @@ {{- macros_head::seo(config=config, title=title, title_addition=title_addition, description=description, type="article", is_page=true, created_time=created_time, updated_time=updated_time, page_section=page_section) }} {%- endblock seo %} +{%- block comments_init %} + {%- if config.extra.comments.hyvor %} + <script async src="https://talk.hyvor.com/embed/embed.js" type="module"></script> + {%- endif %} +{%- endblock comments_init %} + {%- block content %} <article> {{- macros::title_post(page=page, config=config) }} @@ -49,6 +55,12 @@ {%- block page_footer %} {{- macros::footer(page=page, config=config) }} {%- endblock page_footer %} + + {%- block comments_body %} + {%- if config.extra.comments.hyvor %} + <hyvor-talk-comments website-id={{ config.extra.comments.hyvor }} page-id={{ page.slug }} colors="os"></hyvor-talk-comments> + {%- endif %} + {%- endblock comments_body %} </article> {%- block toc %} {%- if page.extra.toc and config.extra.recent %} |
