Permalink
Browse files

extract header and footer from layouts

  • Loading branch information...
1 parent c03bc87 commit ee76c26128a0df9efb4d5bad680d26198b1c199e @theophani theophani committed Aug 4, 2013
Showing with 89 additions and 164 deletions.
  1. +31 −0 _includes/footer.html
  2. +49 −0 _includes/header.html
  3. +5 −82 _layouts/for_speakers.html
  4. +3 −81 _layouts/main.html
  5. +1 −1 for_speakers/index.md
View
31 _includes/footer.html
@@ -0,0 +1,31 @@
+ </section>
+
+ <footer>
+ <span class="ribbon-outer">
+ <span class="ribbon-inner">
+ <p><br></p>
+ </span>
+ <span class="left-tail"></span>
+ <span class="right-tail"></span>
+ </span>
+ <p></p>
+ </footer>
+
+ </div>
+
+<script type="text/javascript">
+ var _gauges = _gauges || [];
+ (function() {
+ var t = document.createElement('script');
+ t.type = 'text/javascript';
+ t.async = true;
+ t.id = 'gauges-tracker';
+ t.setAttribute('data-site-id', '4fd8d5f1613f5d40db000092');
+ t.src = '//secure.gaug.es/track.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(t, s);
+ })();
+</script>
+
+ </body>
+</html>
View
49 _includes/header.html
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset='utf-8'>
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta name="viewport" content="width=640" />
+ <link rel="alternate" type="application/rss+xml" title="We Are All Awesome! Feed" href="/feed.xml"/>
+
+ <link rel="stylesheet" href="/stylesheets/core.css" media="screen"/>
+ <link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/>
+ <link rel="stylesheet" href="/stylesheets/pygment_trac.css"/>
+
+ <script type="text/javascript" src="/javascripts/modernizr.js"></script>
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+ <script type="text/javascript" src="/javascripts/headsmart.min.js"></script>
+ <script type="text/javascript">
+ $(document).ready(function () {
+ $('#main_content').headsmart()
+ })
+ </script>
+ <title>We Are All Awesome!</title>
+ </head>
+
+ <body>
+ <div class="shell">
+
+ <header>
+ <a href="/">
+ <span class="ribbon-outer">
+ <span class="ribbon-inner">
+ <h1>Waaa</h1>
+ <h2>We Are All Awesome</h2>
+ </span>
+ <span class="left-tail"></span>
+ <span class="right-tail"></span>
+ </span>
+ </a>
+ </header>
+
+ <section id="downloads">
+ <span class="inner">
+ <a href="/for_speakers" class="zip"><em>articles</em> For Speakers</a>
+ <a href="/blog.html" class="tgz"><em>waaa</em> Blog</a>
+ </span>
+ </section>
+
+ <span class="banner-fix"></span>
+
+ <section id="main_content">
View
87 _layouts/for_speakers.html
@@ -1,82 +1,5 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
- <meta name="viewport" content="width=640" />
- <link rel="alternate" type="application/rss+xml" title="We Are All Awesome! Feed" href="/feed.xml"/>
-
- <link rel="stylesheet" href="/stylesheets/core.css" media="screen"/>
- <link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/>
- <link rel="stylesheet" href="/stylesheets/pygment_trac.css"/>
-
- <script type="text/javascript" src="/javascripts/modernizr.js"></script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script type="text/javascript" src="/javascripts/headsmart.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $('#main_content').headsmart()
- })
- </script>
- <title>We Are All Awesome!</title>
- </head>
-
- <body>
- <div class="shell">
-
- <header>
- <a href="/">
- <span class="ribbon-outer">
- <span class="ribbon-inner">
- <h1>Waaa</h1>
- <h2>We Are All Awesome</h2>
- </span>
- <span class="left-tail"></span>
- <span class="right-tail"></span>
- </span>
- </a>
- </header>
-
- <section id="downloads">
- <span class="inner">
- <a href="/for_speakers" class="zip"><em>articles</em> For Speakers</a>
- <a href="/blog.html" class="tgz"><em>waaa</em> Blog</a>
- </span>
- </section>
-
- <span class="banner-fix"></span>
-
- <section id="main_content">
- {{ content }}
- {% include list_of_pages_for_speakers.html %}
- </section>
-
- <footer>
- <span class="ribbon-outer">
- <span class="ribbon-inner">
- <p><br></p>
- </span>
- <span class="left-tail"></span>
- <span class="right-tail"></span>
- </span>
- <p></p>
- </footer>
-
- </div>
-
-<script type="text/javascript">
- var _gauges = _gauges || [];
- (function() {
- var t = document.createElement('script');
- t.type = 'text/javascript';
- t.async = true;
- t.id = 'gauges-tracker';
- t.setAttribute('data-site-id', '4fd8d5f1613f5d40db000092');
- t.src = '//secure.gaug.es/track.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(t, s);
- })();
-</script>
-
- </body>
-</html>
+{% include header.html %}
+{{ content }}
+<h2 id="further-reading">Further Reading</h2>
+{% include list_of_pages_for_speakers.html %}
+{% include footer.html %}
View
84 _layouts/main.html
@@ -1,81 +1,3 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
- <meta name="viewport" content="width=640" />
- <link rel="alternate" type="application/rss+xml" title="We Are All Awesome! Feed" href="/feed.xml"/>
-
- <link rel="stylesheet" href="/stylesheets/core.css" media="screen"/>
- <link rel="stylesheet" href="/stylesheets/mobile.css" media="handheld, only screen and (max-device-width:640px)"/>
- <link rel="stylesheet" href="/stylesheets/pygment_trac.css"/>
-
- <script type="text/javascript" src="/javascripts/modernizr.js"></script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script type="text/javascript" src="/javascripts/headsmart.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $('#main_content').headsmart()
- })
- </script>
- <title>We Are All Awesome!</title>
- </head>
-
- <body>
- <div class="shell">
-
- <header>
- <a href="/">
- <span class="ribbon-outer">
- <span class="ribbon-inner">
- <h1>Waaa</h1>
- <h2>We Are All Awesome</h2>
- </span>
- <span class="left-tail"></span>
- <span class="right-tail"></span>
- </span>
- </a>
- </header>
-
- <section id="downloads">
- <span class="inner">
- <a href="/for_speakers" class="zip"><em>articles</em> For Speakers</a>
- <a href="/blog.html" class="tgz"><em>waaa</em> Blog</a>
- </span>
- </section>
-
- <span class="banner-fix"></span>
-
- <section id="main_content">
- {{ content }}
- </section>
-
- <footer>
- <span class="ribbon-outer">
- <span class="ribbon-inner">
- <p><br></p>
- </span>
- <span class="left-tail"></span>
- <span class="right-tail"></span>
- </span>
- <p></p>
- </footer>
-
- </div>
-
-<script type="text/javascript">
- var _gauges = _gauges || [];
- (function() {
- var t = document.createElement('script');
- t.type = 'text/javascript';
- t.async = true;
- t.id = 'gauges-tracker';
- t.setAttribute('data-site-id', '4fd8d5f1613f5d40db000092');
- t.src = '//secure.gaug.es/track.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(t, s);
- })();
-</script>
-
- </body>
-</html>
+{% include header.html %}
+{{ content }}
+{% include footer.html %}
View
2 for_speakers/index.md
@@ -1,5 +1,5 @@
---
-layout: for_speakers
+layout: main
title: Become a speaker
for_speakers: true
list_order: one

0 comments on commit ee76c26

Please sign in to comment.