diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk
index 3f97269..8886a3e 100644
--- a/_includes/layouts/base.njk
+++ b/_includes/layouts/base.njk
@@ -4,13 +4,13 @@
{{ title or metadata.title }}
-
-
+
+
-
+
{%- for nav in collections.nav | reverse -%}
- {{ nav.data.navtitle }}
diff --git a/_src/HtmlToAbsoluteUrls.js b/_src/HtmlToAbsoluteUrls.js
index d71717e..2b219e0 100644
--- a/_src/HtmlToAbsoluteUrls.js
+++ b/_src/HtmlToAbsoluteUrls.js
@@ -5,8 +5,10 @@ const absoluteUrl = require("./AbsoluteUrl");
module.exports = function(htmlContent, base) {
let options = {
eachURL: function(url, attr, element) {
+ url = url.trim();
+
// #anchor in-page
- if( url.trim().indexOf("#") === 0 ) {
+ if( url.indexOf("#") === 0 ) {
return url;
}
diff --git a/feed/feed.njk b/feed/feed.njk
index 86ee46a..636c9c2 100644
--- a/feed/feed.njk
+++ b/feed/feed.njk
@@ -13,13 +13,14 @@ permalink: feed/feed.xml
{{ metadata.author.name }}
{{ metadata.author.email }}
- {% for post in collections.posts %}
+ {%- for post in collections.posts %}
+ {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
{{ post.data.title }}
-
+
{{ post.date | rssDate }}
- {{ post.url | absoluteUrl(metadata.url) }}
- {{ post.templateContent | htmlToAbsoluteUrls(metadata.url) }}
+ {{ absolutePostUrl }}
+ {{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}
- {% endfor %}
+ {%- endfor %}
\ No newline at end of file