app/views/pages_cms/pages/show.html.haml in pages_cms-1.1.0 vs app/views/pages_cms/pages/show.html.haml in pages_cms-1.2.0
- old
+ new
@@ -1,7 +1,8 @@
-- meta_tags = @page.meta_tags
-- meta_description = @page.meta_description
+- provide(:title, @page.title)
+- provide(:meta_tags, @page.meta_tags)
+- provide(:meta_description, @page.meta_description)
- if @sliders && @sliders.count == 1
%div.container-contain
= image_tag @sliders.first.image.file
- elsif @sliders
@@ -23,10 +24,10 @@
= link_to article.title, article_path(article), class: 'btn btn-xs btn-default'
%hr
- if @sidebar.all_tags
%h5 Tagged
- PagesCms::Article.pluck(:tags).flatten.uniq.each do |tag|
- = link_to tag, blog_path(tag), class: 'btn btn-xs btn-default'
+ = link_to tag, blog_path(current_site, tag), class: 'btn btn-xs btn-default'
%hr
- if @sidebar.all_pages
%h5 Pages
%ul.nav.nav-pills.nav-stacked
- PagesCms::Page.where(sidebar_show: true).each do |link|
\ No newline at end of file