rssItem :: Config -> Post -> RSS.RSSItem
rssItem Config{..} post@Post{..} =
  (RSS.nullItem $ TL.toStrict postTitle)
    { RSS.rssItemLink =
      Just $ TL.toStrict (blogDomain <> "/" <> getPath post)
    , RSS.rssItemDescription =
      -- TL.toStrict <$> previewSummary postPreview
      Just $ TL.toStrict $ HR.renderHtml postContent
    , RSS.rssItemCategories =
      tagToCatRSS blogDomain <$> postTags
    , RSS.rssItemPubDate =
      Just $ showDayRfc822 postDate
    -- , RSS.rssItemContent =
    --   Just $ TL.toStrict $ HR.renderHtml postContent
    }
rssItem :: Config -> Post -> RSS.RSSItem
rssItem Config{..} post@Post{..} =
  (RSS.nullItem $ TL.toStrict postTitle)
    { RSS.rssItemLink =
      Just $ TL.toStrict (blogDomain <> "/" <> getPath post)
    , RSS.rssItemDescription =
      -- TL.toStrict <$> previewSummary postPreview
      Just $ TL.toStrict $ HR.renderHtml postContent
    , RSS.rssItemCategories =
      tagToCatRSS blogDomain <$> postTags
    , RSS.rssItemPubDate =
      Just $ showDayRfc822 postDate
    -- , RSS.rssItemContent =
    --   Just $ TL.toStrict $ HR.renderHtml postContent
    }
rssItem Config{..} post@Post{..} =
  (RSS.nullItem $ TL.toStrict postTitle)
    { RSS.rssItemLink =
      Just $ TL.toStrict (blogDomain <> "/" <> getPath post)
    , RSS.rssItemDescription =
      -- TL.toStrict <$> previewSummary postPreview
      Just $ TL.toStrict $ HR.renderHtml postContent
    , RSS.rssItemCategories =
      tagToCatRSS blogDomain <$> postTags
    , RSS.rssItemPubDate =
      Just $ showDayRfc822 postDate
    -- , RSS.rssItemContent =
    --   Just $ TL.toStrict $ HR.renderHtml postContent
    }