summaryrefslogtreecommitdiff
path: root/build/add-math-kleen-org.hs
diff options
context:
space:
mode:
authorViktor Kleen <viktor@kleen.org>2015-01-02 13:12:04 +0000
committerViktor Kleen <viktor@kleen.org>2015-01-02 13:12:04 +0000
commita7cf43b34976ac230e4cbead28990f9823c35f7b (patch)
tree49a3c3b6d27a5f45ea7119982d9588af463a5a31 /build/add-math-kleen-org.hs
parent0fe32e47ba3f8895a6125cf8fc618f01adf59579 (diff)
downloaddirty-haskell.org-a7cf43b34976ac230e4cbead28990f9823c35f7b.tar
dirty-haskell.org-a7cf43b34976ac230e4cbead28990f9823c35f7b.tar.gz
dirty-haskell.org-a7cf43b34976ac230e4cbead28990f9823c35f7b.tar.bz2
dirty-haskell.org-a7cf43b34976ac230e4cbead28990f9823c35f7b.tar.xz
dirty-haskell.org-a7cf43b34976ac230e4cbead28990f9823c35f7b.zip
remove redundant add-math-kleen-org.hs
Diffstat (limited to 'build/add-math-kleen-org.hs')
-rwxr-xr-xbuild/add-math-kleen-org.hs13
1 files changed, 0 insertions, 13 deletions
diff --git a/build/add-math-kleen-org.hs b/build/add-math-kleen-org.hs
deleted file mode 100755
index e564149..0000000
--- a/build/add-math-kleen-org.hs
+++ /dev/null
@@ -1,13 +0,0 @@
1#!/usr/bin/env runhaskell
2
3import Data.Map
4import Text.Pandoc.Pretty
5import Text.Pandoc.JSON
6import System.IO
7
8add_title :: Pandoc -> Pandoc
9add_title (Pandoc m bs) = Pandoc (add_title' m) bs
10 where add_title' m@(Meta map) = Meta $ insert "title" (MetaInlines $ [Link [Str "math.kleen.org:"] ("/","math.kleen.org"), Space] ++ docTitle m) map
11
12main :: IO ()
13main = toJSONFilter add_title