I had a client request that their social sharing cards show their site title suffix. Here’s the quick patch I’m using to get a Ruby site to do that. It would be great if this were a UI option.
module Dato
module Utils
module MetaTags
class Title < Base
def build
return unless item_title
[
content_tag(:title, item_title_with_suffix),
# og_tag('og:title', item_title),
og_tag('og:title', item_title_with_suffix),
# card_tag('twitter:title', item_title)
card_tag('twitter:title', item_title_with_suffix)
]
end
end
end
end
end