diff options
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r-- | lib/Hakyll/Web/Feed.hs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Hakyll/Web/Feed.hs b/lib/Hakyll/Web/Feed.hs index 2cafe02..6e12146 100644 --- a/lib/Hakyll/Web/Feed.hs +++ b/lib/Hakyll/Web/Feed.hs @@ -35,7 +35,7 @@ import Hakyll.Web.Template.List -------------------------------------------------------------------------------- -import Data.FileEmbed (embedFile) +import Data.FileEmbed (makeRelativeToProject, embedFile) import qualified Data.Text as T import qualified Data.Text.Encoding as T @@ -43,20 +43,19 @@ import qualified Data.Text.Encoding as T -------------------------------------------------------------------------------- rssTemplate :: String rssTemplate = T.unpack $ - T.decodeUtf8 $(embedFile "data/templates/rss.xml") + T.decodeUtf8 $(makeRelativeToProject "data/templates/rss.xml" >>= embedFile) rssItemTemplate :: String rssItemTemplate = T.unpack $ - T.decodeUtf8 $(embedFile "data/templates/rss-item.xml") + T.decodeUtf8 $(makeRelativeToProject "data/templates/rss-item.xml" >>= embedFile) atomTemplate :: String atomTemplate = T.unpack $ - T.decodeUtf8 $(embedFile "data/templates/atom.xml") + T.decodeUtf8 $(makeRelativeToProject "data/templates/atom.xml" >>= embedFile) atomItemTemplate :: String atomItemTemplate = T.unpack $ - T.decodeUtf8 $(embedFile "data/templates/atom-item.xml") - + T.decodeUtf8 $(makeRelativeToProject "data/templates/atom-item.xml" >>= embedFile) -------------------------------------------------------------------------------- -- | This is a data structure to keep the configuration of a feed. |