Browse Source

Move from atom.xml to feed.xml for tech agnostic-ish filename.

upstream
Zach Leatherman 5 years ago
parent
commit
c81bebd872
3 changed files with 6 additions and 5 deletions
  1. +3
    -2
      _data/metadata.json
  2. +1
    -1
      feed/feed.njk
  3. +2
    -2
      feed/htaccess.njk

+ 3
- 2
_data/metadata.json View File

@ -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": {


+ 1
- 1
feed/feed.njk View File

@ -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">


+ 2
- 2
feed/htaccess.njk View File

@ -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 }}

Loading…
Cancel
Save