_includes/shortcodes/social-meta

An 11ty shortcode for social media metadata in HTML <head> element

Source:
Parameters:
NameTypeDescription
eleventyConfigObject

11ty’s Config API

Methods

(inner) socialMeta(data) → {String}

OpenGraph and Twitter metadata with fallbacks (~/_data/site.js)

Source:
See:
Parameters:
NameTypeDescription
dataObject

11ty’s data object

Returns:
Type:
String

Composite HTML template literal

Example
`${this.socialMeta()}`