Remove dead code
This commit is contained in:
parent
1a2ece9dd9
commit
fc0ef57b53
2 changed files with 0 additions and 18 deletions
|
@ -79,18 +79,3 @@ instance HasCard ArticlesList where
|
||||||
return $ maybe "" ('/':) (tag collection) ++ file
|
return $ maybe "" ('/':) (tag collection) ++ file
|
||||||
where
|
where
|
||||||
file = '/' : (if full al then "all" else "index") ++ ".html"
|
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"
|
|
||||||
-}
|
|
||||||
|
|
|
@ -27,14 +27,11 @@ instance ToJSON MarkdownExport where
|
||||||
toEncoding = genericToEncoding (defaultOptions {omitNothingFields = True})
|
toEncoding = genericToEncoding (defaultOptions {omitNothingFields = True})
|
||||||
|
|
||||||
exportMarkdown :: Maybe [String] -> Markdown -> MarkdownExport
|
exportMarkdown :: Maybe [String] -> Markdown -> MarkdownExport
|
||||||
--exportMarkdown :: Blog -> String -> Markdown -> MarkdownExport
|
|
||||||
exportMarkdown tagged markdown = MarkdownExport {
|
exportMarkdown tagged markdown = MarkdownExport {
|
||||||
--exportMarkdown blog key article = MarkdownExport {
|
|
||||||
title = Markdown.title markdown
|
title = Markdown.title markdown
|
||||||
, metadata = Markdown.metadata markdown
|
, metadata = Markdown.metadata markdown
|
||||||
, bodyOffset = Markdown.bodyOffset markdown
|
, bodyOffset = Markdown.bodyOffset markdown
|
||||||
, tagged
|
, tagged
|
||||||
--, tagged = Map.keys . Map.filter (Set.member key) $ Blog.tags blog
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data BlogExport = BlogExport {
|
data BlogExport = BlogExport {
|
||||||
|
|
Loading…
Reference in a new issue