Commits

Luke Plant committed c646234

Added anchors to individual comments

Comments (0)

Files changed (2)

src/Blog/Templates.hs

                                       , ("date", ToSElemD $ showDate $ Cm.timestamp cm)
                                       , ("textFormatted", ToSElemD $ Cm.text_formatted cm)
                                       , ("email", ToSElemD $ Cm.email cm)
+                                      , ("uid", ToSElemD $ Cm.uid cm)
                                       ]

src/templates/comment.st

 
     <div class="comment$if(comment.isAuthor)$ author$endif$">
       <div class="introline">
-        <span>On <span class="timestamp">$comment.date$</span>, <span class="commentBy">$comment.formattedName$</span> wrote:</span>
+        <a id="comment$comment.uid$" href="#comment$comment.uid$" class="anchor">§</a> <span>On <span class="timestamp">$comment.date$</span>, <span class="commentBy">$comment.formattedName$</span> wrote:</span>
       </div>
       <div class="commenttext">
          $comment.textFormatted:noescape()$