From ff240ed2641bd15dbdf176ba0d561c6c760bc9c6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Tue, 10 Oct 2017 09:30:22 +0200 Subject: [PATCH] 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`. --- blog/templates/index.html | 6 +++--- blog/templates/macros.html | 2 +- blog/templates/page.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blog/templates/index.html b/blog/templates/index.html index aed91832..7af1c00f 100644 --- a/blog/templates/index.html +++ b/blog/templates/index.html @@ -16,7 +16,7 @@

Latest post: {% set latest_post = posts|last %} - {{ latest_post.title }} + {{ latest_post.title }}

@@ -47,10 +47,10 @@

{{ extra.title }}

diff --git a/blog/templates/macros.html b/blog/templates/macros.html index 7952f13f..aa62e7fe 100644 --- a/blog/templates/macros.html +++ b/blog/templates/macros.html @@ -1,6 +1,6 @@ {% macro post_link(page) %}
-

{{ page.title }}

+

{{ page.title }}

{{ page.summary | safe }}
{% endmacro post_link %} diff --git a/blog/templates/page.html b/blog/templates/page.html index fa7a227c..463e937d 100644 --- a/blog/templates/page.html +++ b/blog/templates/page.html @@ -28,10 +28,10 @@