From e01c289922d0b3e2767e6d2e24fbb415d14a02a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Dub=C3=A9?= Date: Tue, 19 Feb 2013 13:08:42 -0500 Subject: [PATCH] Update hyde/layouts/basic/layout/atom.j2 Fix to the atom.j2 layout to keep the article 'resource' scope, thus fixing some issues that may occur if you had references to the 'resource' variable within the article content. --- hyde/layouts/basic/layout/atom.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyde/layouts/basic/layout/atom.j2 b/hyde/layouts/basic/layout/atom.j2 index 5f894fe..d654557 100644 --- a/hyde/layouts/basic/layout/atom.j2 +++ b/hyde/layouts/basic/layout/atom.j2 @@ -34,7 +34,7 @@ {% endfor %} - {% refer to res.url as article -%} + {% refer to res.relative_path as article -%} {% filter forceescape -%} {% if resource.meta.excerpts_only -%} {{ article.image|markdown|typogrify }} @@ -46,4 +46,4 @@ {% endfor %} - \ No newline at end of file +