Commit e6342c44 by Tran Hoang Viet

VietTH: update meta tags

parent 4b3c492d
...@@ -8,11 +8,12 @@ module MetaManagement extend ActiveSupport::Concern ...@@ -8,11 +8,12 @@ module MetaManagement extend ActiveSupport::Concern
def meta_attributes_default def meta_attributes_default
{ {
site_name: 'Venshop',
image: ActionController::Base.helpers.asset_url('logo.png'), image: ActionController::Base.helpers.asset_url('logo.png'),
title: 'Venshop Zigexn VeNtura', title: 'Venshop Zigexn VeNtura',
description: 'Venshop', description: 'Venshop',
keywords: 'Ventura, Zigexn, venshop', keywords: 'Ventura, Zigexn, venshop',
type: 'url' type: 'product'
} }
end end
...@@ -28,13 +29,15 @@ module MetaManagement extend ActiveSupport::Concern ...@@ -28,13 +29,15 @@ module MetaManagement extend ActiveSupport::Concern
keywords: attributes[:keywords], keywords: attributes[:keywords],
separator: "—".html_safe, separator: "—".html_safe,
og: { og: {
site_name: attributes[:site_name],
title: attributes[:title], title: attributes[:title],
type: attributes[:type], type: attributes[:type],
url: Settings.base_url, url: request.original_url,
image: attributes[:image], image: attributes[:image],
description: attributes[:description] description: attributes[:description]
}, },
twitter: { twitter: {
site_name: attributes[:site_name],
title: attributes[:title], title: attributes[:title],
description: attributes[:description], description: attributes[:description],
card: attributes[:type], card: attributes[:type],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment