diff --git a/blog/templates/edition-2/extra.html b/blog/templates/edition-2/extra.html index f07c219f..e6bb8d86 100644 --- a/blog/templates/edition-2/extra.html +++ b/blog/templates/edition-2/extra.html @@ -1,6 +1,6 @@ {% extends "edition-2/base.html" %} -{% import "edition-2/macros.html" as macros %} +{% import "snippets.html" as snippets %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} diff --git a/blog/templates/edition-2/macros.html b/blog/templates/edition-2/macros.html index 66cd305e..a128de0a 100644 --- a/blog/templates/edition-2/macros.html +++ b/blog/templates/edition-2/macros.html @@ -43,12 +43,3 @@ {% endmacro toc %} -{% macro utterances() %} - -{% endmacro utterances %} diff --git a/blog/templates/edition-2/news-page.html b/blog/templates/edition-2/news-page.html index bf6f59b2..22c1b92c 100644 --- a/blog/templates/edition-2/news-page.html +++ b/blog/templates/edition-2/news-page.html @@ -1,6 +1,6 @@ {% extends "edition-2/base.html" %} -{% import "edition-2/macros.html" as macros %} +{% import "snippets.html" as snippets %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} @@ -17,7 +17,7 @@

Comments

- {{ macros::utterances() }} + {{ snippets::giscus(search_term=page.title ~ " (News Post)") }}
{% endblock after_main %} diff --git a/blog/templates/snippets.html b/blog/templates/snippets.html index 4a9dde1f..9065977e 100644 --- a/blog/templates/snippets.html +++ b/blog/templates/snippets.html @@ -25,6 +25,7 @@

Instead of authenticating the giscus application, you can also comment directly on GitHub. diff --git a/blog/templates/status-update-page.html b/blog/templates/status-update-page.html index 47d44b5e..c62378a9 100644 --- a/blog/templates/status-update-page.html +++ b/blog/templates/status-update-page.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% import "snippets.html" as snippets %} + {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block main %} @@ -27,6 +29,10 @@ {% endif %} +


+
+

Comments

{{ snippets::giscus(search_term=page.title) }} +
{% endblock after_main %}