From 56c9b0e41a07ad543d7e1e3fdac20503bd3d6abb Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 27 Jun 2018 12:07:11 +0200 Subject: [PATCH] Use post url for finding utterances issue --- blog/templates/macros.html | 9 +++++++++ blog/templates/news-page.html | 9 +++------ blog/templates/second-edition/extra.html | 9 +++------ blog/templates/second-edition/page.html | 9 +++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/blog/templates/macros.html b/blog/templates/macros.html index c262b74e..6cd07ce8 100644 --- a/blog/templates/macros.html +++ b/blog/templates/macros.html @@ -7,3 +7,12 @@ {% endmacro post_link %} + +{% macro utterances() %} + +{% endmacro utterances %} diff --git a/blog/templates/news-page.html b/blog/templates/news-page.html index cd37ad12..e38a8316 100644 --- a/blog/templates/news-page.html +++ b/blog/templates/news-page.html @@ -1,5 +1,7 @@ {% extends "second-edition/base.html" %} +{% import "macros.html" as macros %} + {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block main %} @@ -15,12 +17,7 @@

Comments

- + {{ macros::utterances() }}
{% endblock after_main %} diff --git a/blog/templates/second-edition/extra.html b/blog/templates/second-edition/extra.html index dc7d8c7a..59b31660 100644 --- a/blog/templates/second-edition/extra.html +++ b/blog/templates/second-edition/extra.html @@ -1,5 +1,7 @@ {% extends "second-edition/base.html" %} +{% import "macros.html" as macros %} + {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block main %} @@ -14,11 +16,6 @@

Comments

- + {{ macros::utterances() }}
{% endblock after_main %} diff --git a/blog/templates/second-edition/page.html b/blog/templates/second-edition/page.html index 9b552c2c..05074331 100644 --- a/blog/templates/second-edition/page.html +++ b/blog/templates/second-edition/page.html @@ -1,5 +1,7 @@ {% extends "second-edition/base.html" %} +{% import "macros.html" as macros %} + {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block main %} @@ -38,12 +40,7 @@

Comments

- + {{ macros::utterances() }}
{% endblock after_main %}