diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 6ff7ff5..8b5e3ac 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -7,16 +7,15 @@ %main.row %aside.menu.col-md-3 - - cache @site do - %h1 - = link_to @site.title, @site.url - %p.lead= @site.description + %h1 + = link_to @site.title, @site.url + %p.lead= @site.description - %h3= t('posts.new') - %ul - - @site.layouts.to_h.keys.each do |layout| - %li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize, - new_site_post_path(@site, layout: layout) + %h3= t('posts.new') + %ul + - @site.layouts.to_h.keys.each do |layout| + %li= link_to @site.i18n.dig('layouts', layout.to_s) || layout.to_s.humanize, + new_site_post_path(@site, layout: layout) - if policy(@site).edit? = link_to t('sites.edit.btn', site: @site.title),