Removed getTheme as it is already implemented by safeStylingLink.
authorsabadev <saba@sabadev.xyz>
Tue, 23 Mar 2021 13:06:22 +0000 (09:06 -0400)
committersabadev <dev@sabadev.xyz>
Tue, 13 Apr 2021 01:16:38 +0000 (21:16 -0400)
src/Html.hs

index e7b8bfa..50cf7b0 100644 (file)
@@ -18,7 +18,7 @@ htmlContainer theme contents = do
       title_ $ toHtml siteTitle
       meta_ [charset_ "utf8"]
       meta_ [name_ "description", content_ "width=device-width"]
-      link_ [rel_ "stylesheet", href_ $ getTheme theme]
+      link_ [rel_ "stylesheet", href_ $ safeStylingLink theme]
     body_ $ do
       nav
       div_ [role_ "main"] contents
@@ -46,6 +46,3 @@ staticPath = "static/"
 
 markdownExtension :: T.Text
 markdownExtension = ".md"
-
-getTheme :: Maybe Theme -> T.Text
-getTheme theme = safeStylingLink theme