Test post
Subheader
Subsubheader
This is a post I am using to test stuff out. The content here makes no sense (or at least isn’t supposed to)
⚠️ Work in progress here
main :: IO ()
= do
main <- readBlogroll "blogroll.txt"
urls putStrLn $ "Found " ++ show (length urls) ++ " feeds"
<- loadFontAsBase64 "IBMPlexSans-Regular.woff2"
fontBase64 <- fetchAllFavicons urls
faviconMap let faviconCss = generateFaviconCss faviconMap
<- mapM fetchFeed urls
feeds let feedEntries = zipWith (\url result -> case result of
Left _err -> []
Right cont -> parseFeed url cont
) urls feeds
let allEntries = mergeFeedEntries feedEntries
putStrLn $ "Total entries: " ++ show (length allEntries)
let recent25 = take 25 allEntries
let recentHtml = renderHtml recent25 "Good stuff!" faviconCss fontBase64
let allHtml = renderHtml allEntries "All Posts" faviconCss fontBase64
"index.html" recentHtml
TIO.writeFile "all.html" allHtml
TIO.writeFile putStrLn "Generated index.html (25 recent) and all.html"