From 2772d8d9cdbb2a7d027c81d637f52858bf696a10 Mon Sep 17 00:00:00 2001 From: Felix Wolfsteller Date: Tue, 6 Oct 2020 19:22:42 +0200 Subject: [PATCH] add hero layout, fix navbar --- app/views/layouts/application.html.haml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index cfea2af..e05d2fa 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -32,14 +32,15 @@ %link(rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png") %link(rel="shortcut icon" href="/favicon.ico") %link(rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png") - %body.has-navbar-fixed-top - = render 'navbar' - .main-section - %section.hero.is-fullheight-with-navbar#hero-section - .hero-head - .container - = render 'flashs' - = yield - .hero-body - .hero-foot - = render 'footer' + %body + %section.hero + .hero-head + = render 'navbar' + = render 'flashs' + - if content_for?(:hero_head) + = yield(:hero_head) + .hero-body + .container + = yield + .hero-foot + = render 'footer'