diff options
author | EuAndreh <eu@euandre.org> | 2020-01-26 20:41:45 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-01-26 20:41:45 -0300 |
commit | b9bb99e5f60700daac3d55a79615643ed20fff3d (patch) | |
tree | cdaafdba46a46972784a65f2880dd367762651e1 | |
parent | Use mailto: in public-inbox link in about page (diff) | |
download | euandre.org-b9bb99e5f60700daac3d55a79615643ed20fff3d.tar.gz euandre.org-b9bb99e5f60700daac3d55a79615643ed20fff3d.tar.xz |
Use feed.atom extension so nginx uses the right Content-Type
-rw-r--r-- | hakyll/Main.hs | 2 | ||||
-rw-r--r-- | site/templates/default.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hakyll/Main.hs b/hakyll/Main.hs index c3765db..f2ed24e 100644 --- a/hakyll/Main.hs +++ b/hakyll/Main.hs @@ -76,7 +76,7 @@ main = hakyll $ do >>= loadAndApplyTemplate "templates/default.html" indexCtx >>= relativizeUrls - create ["atom.xml", "feed.xml"] $ do + create ["atom.xml", "feed.xml", "feed.atom"] $ do route idRoute compile $ do loadAllSnapshots "posts/*" "content" diff --git a/site/templates/default.html b/site/templates/default.html index 2cbeb05..2fdf64b 100644 --- a/site/templates/default.html +++ b/site/templates/default.html @@ -6,7 +6,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <title>$title$ - EuAndreh's blog</title> <link rel="stylesheet" href="/css/styles.css" /> - <link rel="alternate" type="application/atom+xml" href="/feed.xml" title="EuAndreh's Feed" /> + <link rel="alternate" type="application/atom+xml" href="/feed.atom" title="EuAndreh's Feed" /> </head> <body> <header> @@ -16,7 +16,7 @@ </div> <div id="nav-right"> <a href="/about.html">About</a> - <a href="/feed.xml"> + <a href="/feed.atom"> <img class="simple-icon" src="/images/atom.svg" alt="Blog feed" /> </a> </div> |