Permalink
Browse files

Remove the footer, and add a pandoc template.

  • Loading branch information...
1 parent 304adc9 commit 7191d378f03bd1e43e67dbb42cbc577ebfada48e @romac romac committed Nov 27, 2011
Showing with 88 additions and 14 deletions.
  1. +0 −3 _assets/footer.html
  2. +4 −11 _assets/header.html
  3. +84 −0 _assets/template.html
View
3 _assets/footer.html
@@ -1,3 +0,0 @@
-
-</body>
-</html>
View
15 _assets/header.html
@@ -1,11 +1,4 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8" />
- <title>the ooc language</title>
- <link rel="stylesheet" href="stylesheet.css" type="text/css" />
-</head>
-<body>
- <header>
- <h1>the ooc language</h1>
- </header>
+
+<header>
+ <h1>the ooc language</h1>
+</header>
View
84 _assets/template.html
@@ -0,0 +1,84 @@
+$if(html5)$
+<!DOCTYPE html>
+<html$if(lang)$ lang="$lang$"$endif$>
+$else$
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
+$endif$
+<head>
+$if(html5)$
+ <meta charset="utf-8" />
+$else$
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+$endif$
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="generator" content="pandoc" />
+$for(author)$
+ <meta name="author" content="$author$" />
+$endfor$
+$if(date)$
+ <meta name="date" content="$date$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
+$if(html5)$
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+$endif$
+$if(highlighting-css)$
+ <style type="text/css">
+/*<![CDATA[*/
+$highlighting-css$
+/*]]>*/
+ </style>
+$endif$
+$for(css)$
+ <link rel="stylesheet" href="$css$" $if(html5)$$else$type="text/css" $endif$/>
+$endfor$
+$if(math)$
+ $math$
+$endif$
+$for(header-includes)$
+ $header-includes$
+$endfor$
+</head>
+<body>
+$for(include-before)$
+$include-before$
+$endfor$
+$if(title)$
+$if(html5)$
+<header>
+$else$
+<div id="$idprefix$header">
+$endif$
+<h1 class="title">$title$</h1>
+$for(author)$
+<h3 class="author">$author$</h3>
+$endfor$
+$if(date)$
+<h4 class="date">$date$</h4>
+$endif$
+$if(html5)$
+</header>
+$else$
+</div>
+$endif$
+$endif$
+$if(toc)$
+$if(html5)$
+<nav id="$idprefix$TOC">
+$toc$
+</nav>
+$else$
+<div id="$idprefix$TOC">
+$toc$
+</div>
+$endif$
+$endif$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$
+</body>
+</html>

0 comments on commit 7191d37

Please sign in to comment.