Restructure macros

- Split macros.html in per-edition files
- Create new snippets.html macro file with utterances snippet
- Move support.html to snippets.html as new macro
- Create new `latest_post` macro in 2nd edition macros.html
This commit is contained in:
Philipp Oppermann
2021-01-02 18:09:06 +01:00
parent ee1ca9fa61
commit aa227c7dc6
12 changed files with 72 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
{% extends "edition-2/base.html" %}
{% import "macros.html" as macros %}
{% import "edition-2/macros.html" as macros %}
{% import "snippets.html" as snippets %}
{% block title %}{{ config.title }}{% endblock title %}
@@ -71,7 +72,7 @@
<div class="">
<h2>Support Me</h2>
{% include "support.html" %}
{{ snippets::support() }}
</div>
{% endblock main %}