diff --git a/services/tazblog/blog/Main.hs b/services/tazblog/blog/Main.hs index 2842d1ee1..6074f96b7 100644 --- a/services/tazblog/blog/Main.hs +++ b/services/tazblog/blog/Main.hs @@ -2,7 +2,6 @@ module Main where import Control.Applicative ((<$>), (<*>)) -import Locales (version) import Server (runBlog) import System.Environment (getEnv) @@ -20,6 +19,6 @@ readOpts = main :: IO () main = do - putStrLn ("TazBlog " ++ version ++ " in Haskell starting") opts <- readOpts + putStrLn ("tazblog starting on port " ++ (show $ blogPort opts)) runBlog (blogPort opts) (resourceDir opts) diff --git a/services/tazblog/src/Blog.hs b/services/tazblog/src/Blog.hs index 6c61c2ce2..29fac37ac 100644 --- a/services/tazblog/src/Blog.hs +++ b/services/tazblog/src/Blog.hs @@ -12,15 +12,22 @@ module Blog where import BlogStore -import Data.Text (Text, empty, pack) +import Data.Text (Text, pack) import qualified Data.Text as T import Data.Text.Lazy (fromStrict) import Data.Time -import Locales import Text.Blaze.Html (preEscapedToHtml) import Text.Hamlet import Text.Markdown +blogTitle :: Text = "tazjin's blog" + +repoURL :: Text = "https://bitbucket.org/tazjin/tazblog-haskell" + +mailTo :: Text = "mailto:mail@tazj.in" + +twitter :: Text = "https://twitter.com/tazjin" + replace :: Eq a => a -> a -> [a] -> [a] replace x y = map (\z -> if z == x then y else z) @@ -28,27 +35,25 @@ replace x y = map (\z -> if z == x then y else z) markdownCutoff :: Day markdownCutoff = fromGregorian 2013 04 28 -blogTemplate :: BlogLang -> Text -> Html -> Html -blogTemplate lang t_append body = +blogTemplate :: Text -> Html -> Html +blogTemplate t_append body = [shamlet| $doctype 5
- + - -