middleman-ogp

·1 min read

I released an OpenGraph Protocol helper extension for Middleman.

ngs/middleman-ogp on GitHub

In your Gemfile

gem 'middleman-ogp'

Activate the extension with adding this snippet in config.rb.

Add ogp_tags method and write <meta> tag in the block.

Page data (root key is ogp) will be merged to the default properties.

Outputs <meta> tags like this.