-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from mojavelinux/fwk_twitter_bootstrap
Add bootstrap (from Twitter) as framework option
- Loading branch information
Showing
6 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
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
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
27 changes: 27 additions & 0 deletions
27
lib/awestruct/commands/frameworks/bootstrap/base_index.html.haml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
layout: base | ||
--- | ||
.hero-unit | ||
%h1 You're awestruct! | ||
%p Your site is all setup to use Twitter Bootstrap with Awestruct. | ||
%p | ||
%a.btn.btn-primary.btn-large{ :href=>'http://awestruct.org' } | ||
%i.icon-info-sign.icon-white | ||
Learn more » | ||
.row | ||
.span4 | ||
%h2 About | ||
%p Awestruct is a framework for creating static HTML sites. It's inspired by the awesome Jekyll utility in the same genre. | ||
%p Additionally, Awestruct integrates technologies such as Compass, Markdown and Haml. | ||
%p | ||
%a.btn{ :href=>'http://awestruct.org' } View details » | ||
.span4 | ||
%h2 Goal | ||
%p The goal of Awestruct is to make it trivially easy to bake out non-trivial static websites. In addition to providing template-driven site creation (using Haml), Awestruct provides facilities for easily priming the site creation with additional non-page data. | ||
%p | ||
%a.btn{ :href=>'http://awestruct.org' } View details » | ||
.span4 | ||
%h2 Concept | ||
%p The core concept of Awestruct is that of structures, specifically Ruby OpenStruct structures. The struct aspect allows arbitrary, schema-less data to be associated with a specific page or the entire site. | ||
%p | ||
%a.btn{ :href=>'http://awestruct.org' } View details » |
29 changes: 29 additions & 0 deletions
29
lib/awestruct/commands/frameworks/bootstrap/base_layout.html.haml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
!!!5 | ||
%html | ||
%head | ||
%meta{ :charset=>'utf-8' } | ||
%title An awesome site | ||
%meta{ :name=>'viewport', :content=>'width=device-width, initial-scale=1.0' } | ||
:css | ||
body { | ||
padding-top: 60px; | ||
} | ||
%link{ :rel=>'stylesheet', :type=>'text/css', :href=>'/stylesheets/styles.css' } | ||
/[if lt IE 9] | ||
%script{ :type=>'text/javascript', :src=>'//html5shim.googlecode.com/svn/trunk/html5.js' } | ||
%body | ||
.navbar.navbar-fixed-top | ||
.navbar-inner | ||
.container | ||
%a.brand{ :href=>'/' } Project Name | ||
%ul.nav | ||
%li | ||
%a{ :href=>'/' } Home | ||
.container | ||
~ content | ||
%hr | ||
%footer | ||
%p © Organization #{Date.today.year} | ||
-# Uncomment script tags (remove leading -#) when you're ready to use behaviors | ||
-# %script{ :type=>'text/javascript', :src=>'//cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js' } | ||
-# %script{ :type=>'text/javascript', :src=>'/javascripts/bootstrap-collapse.js' } |
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
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