Render the p-note as Markdown - this is mostly useful because it means other h-card fields can be defined inside it

This commit is contained in:
Danielle McLean 2017-10-15 01:00:12 +11:00
parent 012c62dd09
commit 805e422eba
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
6 changed files with 44 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import Import
import Database.Esqueleto ( (^.) )
import qualified Database.Esqueleto as E
import Model.Markdown ( unMarkdown )
import Text.Mustache ( substitute )
import Util ( compileMustache )
@ -40,7 +41,7 @@ hCard (Entity userId user) = do
<link rel="author" href=@{HomeR}>
<meta property="og:type" content="profile">
<meta property="og:title" content="#{userFullName user}">
<meta property="og:description" content=#{userNote user}>
<meta property="og:description" content=#{unMarkdown $ userNote user}>
<meta property="og:image" content=@{staticR ["img", userAvatar user]}>
<meta property="profile:first_name" content=#{firstName}>
<meta property="profile:last_name" content=#{T.unwords lastName}>