-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[layout] - Separate layout into an isolated module #86
- Loading branch information
Showing
2 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
!!! 5 | ||
html(lang='en') | ||
head | ||
// | ||
// Basic Page Needs | ||
// ================================================== | ||
title= config('organization name') | ||
|
||
meta(charset='utf-8') | ||
meta(name='description', content='') | ||
meta(name='author', content='') | ||
|
||
// | ||
// Mobile Specific Metas | ||
// ================================================== | ||
meta(name='viewport', content='width=device-width, initial-scale=1.0') | ||
|
||
// | ||
// CSS | ||
// ================================================== | ||
// Boostrap Complete | ||
link(rel='stylesheet', href='//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css') | ||
link(href='//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', rel='stylesheet') | ||
|
||
// Application Styles | ||
link(rel='stylesheet', href='/app.css') | ||
|
||
// HTML5 shim, for IE6-8 support of HTML5 elements | ||
//if lt IE 9 | ||
script(src='http://html5shim.googlecode.com/svn/trunk/html5.js') | ||
|
||
// fav and touch icons | ||
link(rel='apple-touch-icon', href='/boot/images/touch-icon-iphone.png') | ||
link(rel='apple-touch-icon', sizes='76x76', href='/boot/images/touch-icon-ipad.png') | ||
link(rel='apple-touch-icon', sizes='120x120', href='/boot/images/touch-icon-iphone-retina.png') | ||
link(rel='apple-touch-icon', sizes='152x152', href='/boot/images/touch-icon-ipad-retina.png') | ||
|
||
link(rel="icon", type="image/x-icon", href=config('favicon')) | ||
|
||
script(type='text/javascript', src='//use.typekit.net/wva0yvr.js') | ||
script. | ||
try{Typekit.load();}catch(e){} | ||
script. | ||
var csrfToken = '#{csrfToken}'; | ||
|
||
include includes/remove-hash | ||
|
||
body | ||
block content | ||
#snap-content.snap-content | ||
// Start of `Page Content` | ||
header.app-header | ||
section#content.site-content | ||
section#browser.site-content | ||
section.app-content | ||
|
||
.snap-drawers | ||
aside.nav-proposal | ||
|
||
|
||
// End of `Page Content` | ||
// ====================== | ||
// Start of `Javascripts` | ||
//- Core 3rd parties libs | ||
script(src='//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js') | ||
script(src='//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js') | ||
include includes/placeholders | ||
//- General Site javascript | ||
script(src='/app.js') | ||
|
||
//- Boot application | ||
script. | ||
require('boot'); | ||
// End of `Javascripts` |
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,7 @@ | ||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var jade = require('jade'); | ||
|
||
module.exports = jade.render('./index'); |