mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Create gutenberg templates
This commit is contained in:
10
blog/templates/macros.html
Normal file
10
blog/templates/macros.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% macro post_link(page) %}
|
||||
<article>
|
||||
<h2 class="post-title"><a href="{{ page.path }}">{{ page.title }}</a></h2>
|
||||
{{ page.summary | safe }}
|
||||
</article>
|
||||
{% endmacro post_link %}
|
||||
|
||||
{% macro latest_post_link(page) %}
|
||||
<a href="{{ page.path }}">{{ page.title }}</a>
|
||||
{% endmacro latest_post_link %}
|
||||
Reference in New Issue
Block a user