Commit 1df5fcff7133dd27427cef1d6e2f2e923b3aa31c

Authored by Braulio Bhavamitra
1 parent b018bca7

metadata: add forum og:type

plugins/metadata/config.yml.dist
... ... @@ -5,6 +5,7 @@ open_graph:
5 5 types:
6 6 article: article
7 7 event: app_scope:event
  8 + forum: app_scope:discussion
8 9 uploaded_file: app_scope:document
9 10 image: app_scope:picture
10 11  
... ...
plugins/metadata/lib/ext/forum.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +require_dependency 'forum'
  2 +
  3 +class Forum
  4 +
  5 + metadata_spec namespace: :og, tags: {
  6 + type: proc{ |p, plugin| plugin.context.params[:og_type] || MetadataPlugin.og_types[:forum] || :forum },
  7 + }
  8 +
  9 +end
... ...