rssFeed :: Config -> [Post] -> RSS.RSS
rssFeed cfg posts =
  let
    domain = blogDomain cfg
  in
    RSS.RSS
      { RSS.rssVersion = "2.0"
      , RSS.rssChannel =
        (RSS.nullChannel (TL.toStrict $ blogTitle cfg) (TL.toStrict domain))
          { RSS.rssItems =
            map (rssItem cfg) posts
          , RSS.rssCategories =
            uniques (tagToCatRSS domain) postTags posts
          , RSS.rssLastUpdate =
            Just $ lastUpdated posts
          , RSS.rssImage =
            Just $ RSS.nullImage
              (TL.toStrict $ domain <> "/favicon.ico")
              (TL.toStrict $ blogTitle cfg)
              (TL.toStrict domain)
          }
      , RSS.rssAttrs = []
      , RSS.rssOther = []
      }
rssFeed :: Config -> [Post] -> RSS.RSS
rssFeed cfg posts =
  let
    domain = blogDomain cfg
  in
    RSS.RSS
      { RSS.rssVersion = "2.0"
      , RSS.rssChannel =
        (RSS.nullChannel (TL.toStrict $ blogTitle cfg) (TL.toStrict domain))
          { RSS.rssItems =
            map (rssItem cfg) posts
          , RSS.rssCategories =
            uniques (tagToCatRSS domain) postTags posts
          , RSS.rssLastUpdate =
            Just $ lastUpdated posts
          , RSS.rssImage =
            Just $ RSS.nullImage
              (TL.toStrict $ domain <> "/favicon.ico")
              (TL.toStrict $ blogTitle cfg)
              (TL.toStrict domain)
          }
      , RSS.rssAttrs = []
      , RSS.rssOther = []
      }
rssFeed cfg posts =
  let
    domain = blogDomain cfg
  in
    RSS.RSS
      { RSS.rssVersion = "2.0"
      , RSS.rssChannel =
        (RSS.nullChannel (TL.toStrict $ blogTitle cfg) (TL.toStrict domain))
          { RSS.rssItems =
            map (rssItem cfg) posts
          , RSS.rssCategories =
            uniques (tagToCatRSS domain) postTags posts
          , RSS.rssLastUpdate =
            Just $ lastUpdated posts
          , RSS.rssImage =
            Just $ RSS.nullImage
              (TL.toStrict $ domain <> "/favicon.ico")
              (TL.toStrict $ blogTitle cfg)
              (TL.toStrict domain)
          }
      , RSS.rssAttrs = []
      , RSS.rssOther = []
      }