Modulehakyll-4.17.0.0Haskell2010
Hakyll.Web.Meta.OpenGraph
Open Graph metadata, as described at https://ogp.me/. This implementation supports the following properties:
| Hardcoded value
|
| Required concatenation of
and
context fields, both of which are required. |
| Required title of article, from
field. |
| Optional brief description taken from context field
, if set. |
| Optional image URL taken from context field
, if set. |
To use, add openGraphField to the template context:
let
context = defaultContext <> …
postContext = context <> openGraphField "opengraph" context
and update the template:
<head>
<title>$title$/title
<link rel="stylesheet" type="text/css" href="/css/default.css" />
$if(opengraph)$$opengraph$$endif$
</head>
See also Hakyll.Web.Meta.TwitterCard.
- 1 value
- Packagehakyll-4.17.0.0
- Exports1
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceOpenGraph.hs