Split html template into html, html5 templates.
This commit is contained in:
parent
8884a9d74b
commit
727772183d
2 changed files with 54 additions and 28 deletions
28
default.html
28
default.html
|
@ -1,17 +1,8 @@
|
||||||
$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">
|
<!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$>
|
<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
|
||||||
$endif$
|
|
||||||
<head>
|
<head>
|
||||||
$if(html5)$
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
$else$
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||||
$endif$
|
|
||||||
<meta name="generator" content="pandoc" />
|
<meta name="generator" content="pandoc" />
|
||||||
$for(author-meta)$
|
$for(author-meta)$
|
||||||
<meta name="author" content="$author-meta$" />
|
<meta name="author" content="$author-meta$" />
|
||||||
|
@ -20,11 +11,6 @@ $if(date-meta)$
|
||||||
<meta name="date" content="$date-meta$" />
|
<meta name="date" content="$date-meta$" />
|
||||||
$endif$
|
$endif$
|
||||||
<title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
|
<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)$
|
$if(highlighting-css)$
|
||||||
$highlighting-css$
|
$highlighting-css$
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -43,11 +29,7 @@ $for(include-before)$
|
||||||
$include-before$
|
$include-before$
|
||||||
$endfor$
|
$endfor$
|
||||||
$if(title)$
|
$if(title)$
|
||||||
$if(html5)$
|
|
||||||
<header>
|
|
||||||
$else$
|
|
||||||
<div id="$idprefix$header">
|
<div id="$idprefix$header">
|
||||||
$endif$
|
|
||||||
<h1 class="title">$title$</h1>
|
<h1 class="title">$title$</h1>
|
||||||
$for(author)$
|
$for(author)$
|
||||||
<h2 class="author">$author$</h2>
|
<h2 class="author">$author$</h2>
|
||||||
|
@ -55,23 +37,13 @@ $endfor$
|
||||||
$if(date)$
|
$if(date)$
|
||||||
<h3 class="date">$date$</h3>
|
<h3 class="date">$date$</h3>
|
||||||
$endif$
|
$endif$
|
||||||
$if(html5)$
|
|
||||||
</header>
|
|
||||||
$else$
|
|
||||||
</div>
|
</div>
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
|
||||||
$if(toc)$
|
$if(toc)$
|
||||||
$if(html5)$
|
|
||||||
<nav id="$idprefix$TOC">
|
|
||||||
$toc$
|
|
||||||
</nav>
|
|
||||||
$else$
|
|
||||||
<div id="$idprefix$TOC">
|
<div id="$idprefix$TOC">
|
||||||
$toc$
|
$toc$
|
||||||
</div>
|
</div>
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
|
||||||
$body$
|
$body$
|
||||||
$for(include-after)$
|
$for(include-after)$
|
||||||
$include-after$
|
$include-after$
|
||||||
|
|
54
default.html5
Normal file
54
default.html5
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html$if(lang)$ lang="$lang$"$endif$>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="generator" content="pandoc">
|
||||||
|
$for(author-meta)$
|
||||||
|
<meta name="author" content="$author-meta$">
|
||||||
|
$endfor$
|
||||||
|
$if(date-meta)$
|
||||||
|
<meta name="date" content="$date-meta$">
|
||||||
|
$endif$
|
||||||
|
<title>$if(title-prefix)$$title-prefix$ - $endif$$if(pagetitle)$$pagetitle$$endif$</title>
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
$if(highlighting-css)$
|
||||||
|
$highlighting-css$
|
||||||
|
$endif$
|
||||||
|
$for(css)$
|
||||||
|
<link rel="stylesheet" href="$css$">
|
||||||
|
$endfor$
|
||||||
|
$if(math)$
|
||||||
|
$math$
|
||||||
|
$endif$
|
||||||
|
$for(header-includes)$
|
||||||
|
$header-includes$
|
||||||
|
$endfor$
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
$for(include-before)$
|
||||||
|
$include-before$
|
||||||
|
$endfor$
|
||||||
|
$if(title)$
|
||||||
|
<header>
|
||||||
|
<h1 class="title">$title$</h1>
|
||||||
|
$for(author)$
|
||||||
|
<h2 class="author">$author$</h2>
|
||||||
|
$endfor$
|
||||||
|
$if(date)$
|
||||||
|
<h3 class="date">$date$</h3>
|
||||||
|
$endif$
|
||||||
|
</header>
|
||||||
|
$endif$
|
||||||
|
$if(toc)$
|
||||||
|
<nav id="$idprefix$TOC">
|
||||||
|
$toc$
|
||||||
|
</nav>
|
||||||
|
$endif$
|
||||||
|
$body$
|
||||||
|
$for(include-after)$
|
||||||
|
$include-after$
|
||||||
|
$endfor$
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Reference in a new issue