mirror of
https://github.com/srid/rib.git
synced 2024-11-27 01:12:09 +03:00
Rib.Extra.OpenGraph: add type=website
This commit is contained in:
parent
729bcd6994
commit
b668e2626f
@ -53,6 +53,7 @@ instance ToHtml OpenGraph where
|
||||
-- TODO: Remaining ADT values & sub-fields
|
||||
data OGType
|
||||
= OGType_Article Article
|
||||
| OGType_Website
|
||||
deriving (Eq, Show)
|
||||
|
||||
instance ToHtml OGType where
|
||||
@ -61,6 +62,8 @@ instance ToHtml OGType where
|
||||
OGType_Article article -> do
|
||||
metaOg "type" "article"
|
||||
toHtml article
|
||||
OGType_Website -> do
|
||||
metaOg "type" "website"
|
||||
|
||||
-- TODO: _article_profile :: [Profile]
|
||||
data Article
|
||||
|
Loading…
Reference in New Issue
Block a user