{-# LANGUAGE OverloadedStrings #-} {- | JSON-LD metadata, using vocabulary for articles. Google applications and other search engines use these data to improve search results and links. This implementation supports the following fields: +-------------------+----------------------------------------------------+ | @\@type@ | __Hardcoded__ value @\"Article"@. | +-------------------+----------------------------------------------------+ | @headline@ | __Required__ taken from context field @title@. | +-------------------+----------------------------------------------------+ | @datePublished@ | __Required__ date of publication, via 'dateField'. | +-------------------+----------------------------------------------------+ To use, add a 'jsonldField' to your template context: @ let context = 'defaultContext' <> … postContext = context <> 'jsonldField' "jsonld" context @ And update the template: @ \ \$title$\ \ $if(jsonld)$$jsonld("embed")$$endif$ \ @ The @"embed"@ argument generates a @\" >>= compileTemplateItem