Use post url for finding utterances issue

This commit is contained in:
Philipp Oppermann
2018-06-27 12:07:11 +02:00
parent 83873ab54b
commit 56c9b0e41a
4 changed files with 18 additions and 18 deletions

View File

@@ -7,3 +7,12 @@
</div> </div>
</article> </article>
{% endmacro post_link %} {% endmacro post_link %}
{% macro utterances() %}
<script src="https://utteranc.es/client.js"
repo="phil-opp/blog_os"
issue-term="url"
crossorigin="anonymous"
async>
</script>
{% endmacro utterances %}

View File

@@ -1,5 +1,7 @@
{% extends "second-edition/base.html" %} {% extends "second-edition/base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block main %} {% block main %}
@@ -15,12 +17,7 @@
<hr> <hr>
<section> <section>
<h2 id="comments">Comments</h2> <h2 id="comments">Comments</h2>
<script src="https://utteranc.es/client.js" {{ macros::utterances() }}
repo="phil-opp/blog_os"
branch="master"
issue-term="pathname"
async>
</script>
</section> </section>
{% endblock after_main %} {% endblock after_main %}

View File

@@ -1,5 +1,7 @@
{% extends "second-edition/base.html" %} {% extends "second-edition/base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block main %} {% block main %}
@@ -14,11 +16,6 @@
<hr> <hr>
<section> <section>
<h2>Comments</h2> <h2>Comments</h2>
<script src="https://utteranc.es/client.js" {{ macros::utterances() }}
repo="phil-opp/blog_os"
branch="master"
issue-term="pathname"
async>
</script>
</section> </section>
{% endblock after_main %} {% endblock after_main %}

View File

@@ -1,5 +1,7 @@
{% extends "second-edition/base.html" %} {% extends "second-edition/base.html" %}
{% import "macros.html" as macros %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
{% block main %} {% block main %}
@@ -38,12 +40,7 @@
<hr> <hr>
<section> <section>
<h2 id="comments">Comments</h2> <h2 id="comments">Comments</h2>
<script src="https://utteranc.es/client.js" {{ macros::utterances() }}
repo="phil-opp/blog_os"
branch="master"
issue-term="pathname"
async>
</script>
</section> </section>
{% endblock after_main %} {% endblock after_main %}