Skip to content

Instantly share code, notes, and snippets.

@wikimatze
Last active October 14, 2018 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wikimatze/b2bb033135d20ce8eb2b5224c6b4ff76 to your computer and use it in GitHub Desktop.
Save wikimatze/b2bb033135d20ce8eb2b5224c6b4ff76 to your computer and use it in GitHub Desktop.
padrino blog tutorial application layout
!!! 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