Files
blog_os/blog/templates/macros.html
Philipp Oppermann ff240ed264 Use absolute permalinks instead of relative paths for links
Fixes links in subfolders. See https://github.com/Keats/gutenberg/issues/128 for a detailed description of the problems with `page.path`.
2017-10-10 09:30:22 +02:00

7 lines
211 B
HTML

{% macro post_link(page) %}
<article>
<h2 class="post-title"><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
{{ page.summary | safe }}
</article>
{% endmacro post_link %}