Module: OpenGraphHelper
- Defined in:
- lib/ecrire/app/helpers/open_graph_helper.rb
Defined Under Namespace
Classes: OGNoArticleError
Instance Method Summary collapse
-
#open_graph_tags ⇒ Object
OpenGraph is in meta tags.
Instance Method Details
#open_graph_tags ⇒ Object
OpenGraph is in meta tags. First I thought it would bring problem if meta tags wouldn’t change between page load. Thinking it through, it doesn’t matter if open graph tags aren’t changed between pages as it’s needed by crawler that does full page load So the tags will always match the content. I doubt this will change in the future as turbolinks checks for crawlers and disable itself when it meets one.
8 9 10 11 12 13 14 |
# File 'lib/ecrire/app/helpers/open_graph_helper.rb', line 8 def if @post.nil? og_website else og_article(@post) end end |