diff options
| author | Jake G | 2023-08-17 10:19:01 -0700 |
|---|---|---|
| committer | GitHub | 2023-08-17 10:19:01 -0700 |
| commit | 1d9be812c25508a5dc36afb9e80669b668a47190 (patch) | |
| tree | 708ad14f4da09bc4a7ae5b2ed38cd941153571c5 /templates | |
| parent | d2aba91ac9f5ab6a6f88b125da80b8f8275138d3 (diff) | |
| parent | 9432eaff747b4c716622656e63ae920c65fa0e90 (diff) | |
| download | abridge-1d9be812c25508a5dc36afb9e80669b668a47190.tar.gz abridge-1d9be812c25508a5dc36afb9e80669b668a47190.tar.bz2 abridge-1d9be812c25508a5dc36afb9e80669b668a47190.zip | |
Merge pull request #132 from Ayush1325/hvyor_talk
Support for hvyor talk comments
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 6 | ||||
| -rw-r--r-- | templates/page.html | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index f609516..736912f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,6 +28,12 @@ {{- macros_head::security(config=config) }} {{- macros_head::favicons(config=config) }} <noscript><link rel="stylesheet" href="{{ get_url(path='nojs.css', trailing_slash=false) | safe }}" /></noscript> + + {%- 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 %} </head> <body> {%- block header %} diff --git a/templates/page.html b/templates/page.html index f92cdea..1c21d67 100644 --- a/templates/page.html +++ b/templates/page.html @@ -49,6 +49,12 @@ {%- block page_footer %} {{- macros::footer(page=page) }} {%- 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 %} |
