fix link embeds
This commit is contained in:
parent
c088389889
commit
87975bb1db
1 changed files with 2 additions and 2 deletions
|
@ -106,12 +106,12 @@ make' root siteName prefix nsfw _dataDir dir
|
||||||
let nsfwDialog = NsfwWarning.dialog nsfw'
|
let nsfwDialog = NsfwWarning.dialog nsfw'
|
||||||
|
|
||||||
let imageMeta = case previewImage info of
|
let imageMeta = case previewImage info of
|
||||||
Just (PFull (Image {path})) -> [b|
|
Just (PFull (pageFile -> path)) -> [b|
|
||||||
<meta property=og:image content="$url/$path">
|
<meta property=og:image content="$url/$path">
|
||||||
<meta name=twitter:card content=summary_large_image>
|
<meta name=twitter:card content=summary_large_image>
|
||||||
<meta name=twitter:image content="$url/$path">
|
<meta name=twitter:image content="$url/$path">
|
||||||
|]
|
|]
|
||||||
Just (PThumb path) -> [b|
|
Just (PThumb (thumbFile -> path)) -> [b|
|
||||||
<meta property=og:image content="$url/$path">
|
<meta property=og:image content="$url/$path">
|
||||||
<meta name=twitter:card content=summary>
|
<meta name=twitter:card content=summary>
|
||||||
|]
|
|]
|
||||||
|
|
Loading…
Reference in a new issue