Skip to content

Commit

Permalink
Move from atom.xml to feed.xml for tech agnostic-ish filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jan 26, 2018
1 parent 1cde4b1 commit c81bebd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions _data/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion feed/feed.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
permalink: feed/atom.xml
permalink: feed/feed.xml
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
Expand Down
4 changes: 2 additions & 2 deletions feed/htaccess.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
permalink: feed/.htaccess
---
# For Apache, to show `atom.xml` when browsing to directory /feed/ (hide the file!)
DirectoryIndex atom.xml
# For Apache, to show `{{ metadata.feed.filename }}` when browsing to directory /feed/ (hide the file!)
DirectoryIndex {{ metadata.feed.filename }}

0 comments on commit c81bebd

Please sign in to comment.