mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
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`.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% macro post_link(page) %}
|
||||
<article>
|
||||
<h2 class="post-title"><a href="{{ page.path }}">{{ page.title }}</a></h2>
|
||||
<h2 class="post-title"><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h2>
|
||||
{{ page.summary | safe }}
|
||||
</article>
|
||||
{% endmacro post_link %}
|
||||
|
||||
Reference in New Issue
Block a user