diff --git a/blog/templates/edition-2/extra.html b/blog/templates/edition-2/extra.html index 93c98f59..c098e58c 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 "snippets.html" as snippets %} +{% import "edition-2/macros.html" as macros %} {% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} @@ -17,6 +17,6 @@

Comments

- {{ snippets::utterances() }} + {{ macros::utterances() }}
{% endblock after_main %} diff --git a/blog/templates/edition-2/macros.html b/blog/templates/edition-2/macros.html index 1faf1bcd..77ffac7b 100644 --- a/blog/templates/edition-2/macros.html +++ b/blog/templates/edition-2/macros.html @@ -26,43 +26,6 @@ {% endmacro post_link %} -{% macro post_link_edition_3(page) %} -
- {% set translations = page.translations | filter(attribute="lang", value=lang) -%} - {%- if translations -%} - {%- set post = get_page(path = translations.0.path) -%} - {%- else -%} - {%- set post = page -%} - {%- set not_translated = true -%} - {%- endif -%} -

{{ post.title }}

- - {%- if post.extra.icon -%}{{post.extra.icon | safe}}{%- endif -%} - -
- {{ post.summary | safe }} - read more » - - {%- if lang and not_translated and lang != config.default_language -%} - - {%- endif -%} -
-
-{% endmacro post_link %} - - -{% macro utterances_edition_3() %} - -{% endmacro utterances_edition_3 %} {% macro toc(toc) %}
Table of Contents @@ -79,3 +42,13 @@
{% endmacro toc %} + +{% macro utterances() %} + +{% endmacro utterances %} diff --git a/blog/templates/edition-2/news-page.html b/blog/templates/edition-2/news-page.html new file mode 100644 index 00000000..bf6f59b2 --- /dev/null +++ b/blog/templates/edition-2/news-page.html @@ -0,0 +1,25 @@ +{% extends "edition-2/base.html" %} + +{% import "edition-2/macros.html" as macros %} + +{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %} + +{% block main %} +

{{ page.title }}

+ + {{ page.content | safe }} +{% endblock main %} + +{% block after_main %} +
+
+

Comments

+ {{ macros::utterances() }} +
+ +{% endblock after_main %} + + diff --git a/blog/templates/edition-2/page.html b/blog/templates/edition-2/page.html index 13a70d79..7ccfa1f2 100644 --- a/blog/templates/edition-2/page.html +++ b/blog/templates/edition-2/page.html @@ -99,7 +99,7 @@

{% endif %} - {{ snippets::utterances() }} + {{ macros::utterances() }}