Skip to content

Instantly share code, notes, and snippets.

@septerr
Created June 10, 2012 06:13
Show Gist options
  • Save septerr/2904103 to your computer and use it in GitHub Desktop.
Save septerr/2904103 to your computer and use it in GitHub Desktop.
locomotive_home_inline_edit
!!! 5
%html{:lang => "en"}
%head
%meta{:charset => "utf-8"}
%title {{ site.name }}
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
/ Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
/ Le styles
{{ 'bootstrap.min.css' | stylesheet_tag }}
{{ 'bootstrap-responsive.min.css' | stylesheet_tag }}
{{ 'bootstrap.min.js' | javascript_tag}}
{% inline_editor %}
%body
.navbar.navbar-fixed-top
.navbar-inner
.container
%a.brand{:href => "#"} {{ site.name }}
%ul.nav
%li.active
%a{:href => "#"} Home
%li
%a{:href => "#about"} About
%li
%a{:href => "#contact"} Contact
.container
{% block 'main' %}
/ Main hero unit for a primary marketing message or call to action
.hero-unit
<h1>
{% editable_short_text "title", hint: "Home Page Title", priority: 1 %}
Homeschool Minder
{% endeditable_short_text %}
</h1>
%p
{% editable_long_text "main", hint: "Home page main content", priority: 2 %}
Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
{% endeditable_long_text %}
%p
%a.btn.primary.large Learn more »
/ Example row of columns
.row
.span4
%h2 Heading
%p Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
%p
%a.btn{:href => "#"} View details »
.span4
%h2 Heading
%p Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
%p
%a.btn{:href => "#"} View details »
.span4
%h2 Heading
%p Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
%p
%a.btn{:href => "#"} View details »
{% endblock %}
%footer
%p © Company 2012
/ /container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment