Remove dead code

This commit is contained in:
Tissevert 2020-06-08 12:36:36 +02:00
parent 1a2ece9dd9
commit fc0ef57b53
2 changed files with 0 additions and 18 deletions

View file

@ -79,18 +79,3 @@ instance HasCard ArticlesList where
return $ maybe "" ('/':) (tag collection) ++ file
where
file = '/' : (if full al then "all" else "index") ++ ".html"
{-
getCard al@(ArticlesList {collection}) = do
cardTitle <- Collection.title collection
description <- ArticlesList.description al
return $ Card {
cardType = "website"
, description
, image = Nothing
, DOM.Card.title = cardTitle
, urlPath = maybe "" ('/':) (tag collection) ++ file
}
where
file = '/' : (if full al then "all" else "index") ++ ".html"
-}

View file

@ -27,14 +27,11 @@ instance ToJSON MarkdownExport where
toEncoding = genericToEncoding (defaultOptions {omitNothingFields = True})
exportMarkdown :: Maybe [String] -> Markdown -> MarkdownExport
--exportMarkdown :: Blog -> String -> Markdown -> MarkdownExport
exportMarkdown tagged markdown = MarkdownExport {
--exportMarkdown blog key article = MarkdownExport {
title = Markdown.title markdown
, metadata = Markdown.metadata markdown
, bodyOffset = Markdown.bodyOffset markdown
, tagged
--, tagged = Map.keys . Map.filter (Set.member key) $ Blog.tags blog
}
data BlogExport = BlogExport {