diff --git a/layout/atom.j2 b/layout/atom.j2 index 4848312..d4f175e 100644 --- a/layout/atom.j2 +++ b/layout/atom.j2 @@ -1,15 +1,16 @@ {% from "macros.j2" import render_excerpt, render_post with context %} +{% from "macros.j2" import fullurl with context %} {% block title %}{{ resource.meta.title|default(feed_title) }}{% endblock %} {% block self_url %} - + {% endblock %} {% block site_url %} - + {% endblock %} {% block feed_extra %} @@ -17,7 +18,7 @@ {{ time_now|xmldatetime }} - {{ content_url(resource.url) }}/ + {{ fullurl(resource.url) }} {% for res in resource.node.walk_resources_sorted_by_time() %} @@ -26,9 +27,9 @@ {{ res.meta.created|xmldatetime }} {{ res.meta.created|xmldatetime }} - {{ content_url(res.url) }} + {{ fullurl(res.url) }} {% for tag in res.meta.tags %} - {% endfor %} diff --git a/layout/macros.j2 b/layout/macros.j2 index e643fba..3739ad2 100644 --- a/layout/macros.j2 +++ b/layout/macros.j2 @@ -2,6 +2,8 @@ {{ res.meta.id if res.meta.id else res.slug }}{% endmacro %} {% macro itemurl(res) %} {{ res.url ~ "#" ~ (res.meta.id if res.meta.id else res.slug) ~ "-title" }}{% endmacro %} +{% macro fullurl(part) %} +{{ site.context.scheme_host ~ part }}{% endmacro %} {# endmacro not on new line to prevent white space at end of macro #} diff --git a/site.yaml b/site.yaml index 8651972..60871b5 100644 --- a/site.yaml +++ b/site.yaml @@ -11,6 +11,7 @@ plugins: - hyde.ext.plugins.text.TextlinksPlugin context: data: + scheme_host: https://blogtest.funkthat.com viewport: width=device-width, initial-scale=1 tweet_via: encthenet title: encthenet ramblings