Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Fix missing optimization tags (list of tags + plugins)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincemtnz committed May 3, 2018
1 parent ab63b89 commit 626bb49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/models/page.rb
Expand Up @@ -140,6 +140,10 @@ def language_code
language&.code || I18n.default_locale
end

def optimization_tags
tag_names << plugin_names
end

This comment has been minimized.

Copy link
@osahyoun

osahyoun May 3, 2018

Member

🌷

private

def switch_plugins
Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/_show.slim
Expand Up @@ -2,7 +2,7 @@
- meta twitter: twitter_meta(@page, share_card)
- meta og: facebook_meta(@page, share_card)

- meta optimization_tags: @page.meta_tags
- meta optimization_tags: @page.optimization_tags
- meta liquid_layout: @page.liquid_layout.title.downcase
= @rendered
= render 'shared/page_object'
Expand Down

0 comments on commit 626bb49

Please sign in to comment.