From c81bebd87207d1e0e40e7b48701c3d5836b08322 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Thu, 25 Jan 2018 21:02:35 -0600 Subject: [PATCH] Move from atom.xml to feed.xml for tech agnostic-ish filename. --- _data/metadata.json | 5 +++-- feed/feed.njk | 2 +- feed/htaccess.njk | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/_data/metadata.json b/_data/metadata.json index ebb2545..3d72dba 100644 --- a/_data/metadata.json +++ b/_data/metadata.json @@ -3,8 +3,9 @@ "url": "https://myurl.com/", "feed": { "subtitle": "I am writing about my experiences as a naval navel-gazer.", - "path": "feed/atom.xml", - "url": "https://myurl.com/feed/atom.xml", + "filename": "feed.xml", + "path": "feed/feed.xml", + "url": "https://myurl.com/feed/feed.xml", "id": "https://myurl.com/" }, "author": { diff --git a/feed/feed.njk b/feed/feed.njk index 7f7d372..2754226 100644 --- a/feed/feed.njk +++ b/feed/feed.njk @@ -1,5 +1,5 @@ --- -permalink: feed/atom.xml +permalink: feed/feed.xml --- diff --git a/feed/htaccess.njk b/feed/htaccess.njk index a91bb00..3318d60 100644 --- a/feed/htaccess.njk +++ b/feed/htaccess.njk @@ -1,5 +1,5 @@ --- permalink: feed/.htaccess --- -# For Apache, to show `atom.xml` when browsing to directory /feed/ (hide the file!) -DirectoryIndex atom.xml \ No newline at end of file +# For Apache, to show `{{ metadata.feed.filename }}` when browsing to directory /feed/ (hide the file!) +DirectoryIndex {{ metadata.feed.filename }} \ No newline at end of file