diff options
author | Vincent Ambo <tazjin@google.com> | 2019-08-25T19·22+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-08-25T19·22+0100 |
commit | 094aafecddc61f36de178205ba9bfd592dc3481f (patch) | |
tree | 8b33d5028464b2e68a992108974967a5e21d9f54 /services/tazblog/src/Blog.hs | |
parent | 6450347bf13ae8f7f5b9004cbaee353f5670c628 (diff) |
chore(tazblog): Remove 'read more' feature r/62
Diffstat (limited to 'services/tazblog/src/Blog.hs')
-rw-r--r-- | services/tazblog/src/Blog.hs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/services/tazblog/src/Blog.hs b/services/tazblog/src/Blog.hs index 15ac9993eba4..6c61c2ce26c1 100644 --- a/services/tazblog/src/Blog.hs +++ b/services/tazblog/src/Blog.hs @@ -82,13 +82,9 @@ $forall entry <- entries <aside .date> #{pack $ formatTime defaultTimeLocale "%Y-%m-%d" $ edate entry} $if (isEntryMarkdown entry) - ^{renderEntryMarkdown $ btext entry} + ^{renderEntryMarkdown $ text entry} $else - ^{preEscapedToHtml $ btext entry} - $if ((/=) (mtext entry) empty) - <p> - <a .uncoloured-link href=#{linkElems entry}> - #{readMore $ lang entry} + ^{preEscapedToHtml $ text entry} <hr> $maybe links <- pageLinks ^{links} @@ -126,11 +122,9 @@ renderEntry e@Entry {..} = <aside .date> #{pack $ formatTime defaultTimeLocale "%Y-%m-%d" edate} $if (isEntryMarkdown e) - ^{renderEntryMarkdown btext} - <p>^{renderEntryMarkdown $ mtext} + ^{renderEntryMarkdown text} $else - ^{preEscapedToHtml $ btext} - <p>^{preEscapedToHtml $ mtext} + ^{preEscapedToHtml $ text} <hr> |] |