- meta_tags = @page.meta_tags - meta_description = @page.meta_description - if @sliders && @sliders.count == 1 %div.container-contain = image_tag @sliders.first.image.file - elsif @sliders = render 'slider', slider_elements: @sliders %div.container-fluid %h1 = @page.title - if @sidebar %div.row %div.col-md-9 = render partial: 'pages_cms/pages/main', locals: { page: @page } %div.col-md-3 = raw @sidebar.content %hr - if @sidebar.all_posts %h5 Blog Posts - PagesCms::Article.all.each do |article| = 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' %hr - if @sidebar.all_pages %h5 Pages %ul.nav.nav-pills.nav-stacked - PagesCms::Page.where(sidebar_show: true).each do |link| %li = link_to link.title, slugged_path(link) - @sidebar.links.each_line do |line| %li - splitted = line.split(',') = link_to splitted[0], splitted[1] - else = render partial: 'pages_cms/pages/main', locals: { page: @page }