You need to sign in or sign up before continuing.
Commit e6342c44 by Tran Hoang Viet

VietTH: update meta tags

parent 4b3c492d
......@@ -8,11 +8,12 @@ module MetaManagement extend ActiveSupport::Concern
def meta_attributes_default
{
site_name: 'Venshop',
image: ActionController::Base.helpers.asset_url('logo.png'),
title: 'Venshop Zigexn VeNtura',
description: 'Venshop',
keywords: 'Ventura, Zigexn, venshop',
type: 'url'
type: 'product'
}
end
......@@ -28,13 +29,15 @@ module MetaManagement extend ActiveSupport::Concern
keywords: attributes[:keywords],
separator: "—".html_safe,
og: {
site_name: attributes[:site_name],
title: attributes[:title],
type: attributes[:type],
url: Settings.base_url,
url: request.original_url,
image: attributes[:image],
description: attributes[:description]
},
twitter: {
site_name: attributes[:site_name],
title: attributes[:title],
description: attributes[:description],
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