summaryrefslogtreecommitdiff
path: root/lib/Hakyll/Web
diff options
context:
space:
mode:
authorHexirp <Hexirp@users.noreply.github.com>2019-11-28 00:05:14 +0900
committerJasper Van der Jeugt <m@jaspervdj.be>2019-11-27 09:05:14 -0600
commit27859234337db77edf465589083a99f500deaa7d (patch)
tree58126f9ea1fabb5a9f6d4f1327a348ff8dd0cdea /lib/Hakyll/Web
parente7f0df00098af7ccdcea2124ec1758cbbde65747 (diff)
downloadhakyll-27859234337db77edf465589083a99f500deaa7d.tar.gz
Fix file path for compatibility with Windows
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r--lib/Hakyll/Web/Feed.hs13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/Hakyll/Web/Feed.hs b/lib/Hakyll/Web/Feed.hs
index 468453b..60a662c 100644
--- a/lib/Hakyll/Web/Feed.hs
+++ b/lib/Hakyll/Web/Feed.hs
@@ -39,24 +39,29 @@ import Hakyll.Web.Template.List
--------------------------------------------------------------------------------
import Data.FileEmbed (makeRelativeToProject)
+import System.FilePath ((</>))
--------------------------------------------------------------------------------
rssTemplate :: Template
rssTemplate =
- $(makeRelativeToProject "data/templates/rss.xml" >>= embedTemplate)
+ $(makeRelativeToProject ("data" </> "templates" </> "rss.xml")
+ >>= embedTemplate)
rssItemTemplate :: Template
rssItemTemplate =
- $(makeRelativeToProject "data/templates/rss-item.xml" >>= embedTemplate)
+ $(makeRelativeToProject ("data" </> "templates" </> "rss-item.xml")
+ >>= embedTemplate)
atomTemplate :: Template
atomTemplate =
- $(makeRelativeToProject "data/templates/atom.xml" >>= embedTemplate)
+ $(makeRelativeToProject ("data" </> "templates" </> "atom.xml")
+ >>= embedTemplate)
atomItemTemplate :: Template
atomItemTemplate =
- $(makeRelativeToProject "data/templates/atom-item.xml" >>= embedTemplate)
+ $(makeRelativeToProject ("data" </> "templates" </> "atom-item.xml")
+ >>= embedTemplate)
--------------------------------------------------------------------------------