mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
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:
@@ -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 %}{{ page.title }} | {{ config.title }}{% endblock title %}
|
||||
{% block header %}
|
||||
@@ -75,7 +76,7 @@
|
||||
|
||||
<div class="post-footer-support">
|
||||
<h2>Support Me</h2>
|
||||
{% include "support.html" %}
|
||||
{{ snippets::support() }}
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
@@ -98,7 +99,7 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{{ macros::utterances() }}
|
||||
{{ snippets::utterances() }}
|
||||
</section>
|
||||
|
||||
<aside class="page-aside-right">
|
||||
|
||||
Reference in New Issue
Block a user