Skip to content

Commit

Permalink
Add titles to tag fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Oct 29, 2019
1 parent d9aa64a commit e3344eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Hakyll/Web/Tags.hs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,10 @@ categoryField =
-- | Render one tag link
simpleRenderLink :: String -> (Maybe FilePath) -> Maybe H.Html
simpleRenderLink _ Nothing = Nothing
simpleRenderLink tag (Just filePath) =
Just $ H.a ! A.href (toValue $ toUrl filePath) $ toHtml tag
simpleRenderLink tag (Just filePath) = Just $
H.a ! A.title (H.stringValue ("All pages tagged '"++tag++"'."))
! A.href (toValue $ toUrl filePath)
$ toHtml tag


--------------------------------------------------------------------------------
Expand Down

0 comments on commit e3344eb

Please sign in to comment.