Last active
October 14, 2018 17:01
-
-
Save wikimatze/b2bb033135d20ce8eb2b5224c6b4ff76 to your computer and use it in GitHub Desktop.
padrino blog tutorial application layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! Strict | |
%html | |
%head | |
%title= "Padrino Sample Blog" | |
= stylesheet_link_tag 'bulma', 'application' | |
= javascript_include_tag 'jquery', 'application' | |
%body | |
%nav.navbar | |
%div.container | |
.navbar-brand | |
%a.navbar-item{:href => "/"} | |
%img{:alt => "Logo of Padrino blog", :src => "http://padrinorb.com/images/logo-6475397a.svg"}/ | |
%span.navbar-burger.burger{"data-target" => "navbarMenu"} | |
%span | |
%span | |
%span | |
#navbarMenu.navbar-menu | |
.navbar-end | |
= link_to 'Home', '/', {:class => 'navbar-item'} | |
= link_to 'Blog', url_for(:posts, :index), {:class => 'navbar-item'} | |
= link_to 'About us', url_for(:about), {:class => 'navbar-item'} | |
%section.hero.is-info.is-medium.is-bold | |
.hero-body | |
.container.has-text-centered | |
%h0.title | |
An example blog created with Padrino | |
%div.container | |
#main= yield | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment