hgbook

changeset 904:af7b5bbfcbd9

Add default plasTeX theme template. Remove obsolete example.
author dukebody <dukebody@gmail.com>
date Mon Oct 26 16:44:44 2009 +0100 (2009-10-26)
parents bc4ce1a80d40
children 17dd7df51f86
files plastex-theme/default-layout.html web/html/template.html
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plastex-theme/default-layout.html	Mon Oct 26 16:44:44 2009 +0100
     1.3 @@ -0,0 +1,66 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <title tal:content="self/title">Book Title</title>
     1.8 +    <meta name="generator" content="plasTeX" />
     1.9 +    <meta content="text/html; charset=${config/files/output-encoding}" http-equiv="content-type" />
    1.10 +
    1.11 +    <link rel="stylesheet" href="styles/styles.css"/>
    1.12 +    <link rel="stylesheet" href="/support/styles/styles.css"/>
    1.13 +
    1.14 +    <link rel="alternate" type="application/atom+xml" title="Comments"
    1.15 +          href="/feeds/comments/"/>
    1.16 +    <link rel="shortcut icon" type="image/png"
    1.17 +          href="/support/figs/favicon.png"/>
    1.18 +
    1.19 +    <script type="text/javascript" src="/support/javascript/jquery.js"></script>
    1.20 +    <script type="text/javascript" src="/support/javascript/form-min.js"></script>
    1.21 +
    1.22 +  </head>
    1.23 +
    1.24 +  <body>
    1.25 +
    1.26 +    <div class="navheader"><h2 class="booktitle">
    1.27 +        <tal:booktitle replace="self/title" />
    1.28 +        <div class="authors">by 
    1.29 +          <tal:author tal:content="self/author">
    1.30 +            Author
    1.31 +          </tal:author>
    1.32 +        </div>
    1.33 +      </h2>
    1.34 +    </div>
    1.35 +
    1.36 +    <div class="chapter" id="{% doc_id %}">
    1.37 +      
    1.38 +      <div class="file_contents" tal:content="self">File contents.</div>
    1.39 +      
    1.40 +      <div id="footnotes" tal:condition="self/footnotes">
    1.41 +        <p><b>Footnotes</b></p>
    1.42 +        <ol>
    1.43 +          <li tal:repeat="footnote self/footnotes" 
    1.44 +              tal:content="footnote" 
    1.45 +              tal:attributes="id footnote/id">footnote text</li>
    1.46 +        </ol>
    1.47 +      </div>
    1.48 +
    1.49 +    </div>
    1.50 +
    1.51 +
    1.52 +      <div class="hgbookfooter"> <p><img src="/support/icons/rss.png"> Want to stay
    1.53 +	  up to date? Subscribe to the comment feed for the 
    1.54 +          <a class="feed"
    1.55 +	     href="/feeds/comments/">entire book</a>.</p> 
    1.56 +        <p>Icons by
    1.57 +	  <a href="mailto:mattahan@gmail.com">Paul Davey</a> aka <a
    1.58 +	  href="http://mattahan.deviantart.com/">Mattahan</a>.</p>
    1.59 +      </div>
    1.60 +
    1.61 +  </body>
    1.62 +
    1.63 +  <script language="javascript" src="icons/imgadjust.js"
    1.64 +	  type="text/javascript">
    1.65 +  </script>
    1.66 +  <script type="text/javascript" src="/support/javascript/hsbook.js">
    1.67 +  </script>
    1.68 +
    1.69 +</html>
     2.1 --- a/web/html/template.html	Mon Oct 26 16:12:39 2009 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,52 +0,0 @@
     2.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     2.5 -<html>
     2.6 -  <head>
     2.7 -    <title>{% book_title %}</title>
     2.8 -    <meta name="generator" content="plasTeX" />
     2.9 -    <meta content="text/html; charset=utf-8" http-equiv="content-type" />
    2.10 -
    2.11 -    <link rel="stylesheet" href="styles/styles.css"/>
    2.12 -    <link rel="stylesheet" href="/support/styles/styles.css"/>
    2.13 -
    2.14 -    <link rel="alternate" type="application/atom+xml" title="Comments"
    2.15 -          href="/feeds/comments/"/>
    2.16 -    <link rel="shortcut icon" type="image/png"
    2.17 -          href="/support/figs/favicon.png"/>
    2.18 -
    2.19 -    <script type="text/javascript" src="/support/javascript/jquery.js"></script>
    2.20 -    <script type="text/javascript" src="/support/javascript/form-min.js"></script>
    2.21 -
    2.22 -  </head>
    2.23 -
    2.24 -  <body>
    2.25 -
    2.26 -    <div class="navheader"><h2 class="booktitle">{% book_title %}
    2.27 -        <div class="authors">by {% author %}</div>
    2.28 -      </h2>
    2.29 -    </div>
    2.30 -
    2.31 -    <div class="chapter" id="{% doc_id %}">
    2.32 -
    2.33 -      {% document_contents %}
    2.34 -
    2.35 -    </div>
    2.36 -
    2.37 -    <div class="hgbookfooter"> <p><img src="/support/icons/rss.png"> Want to stay
    2.38 -	up to date? Subscribe to the comment feed for the 
    2.39 -        <a class="feed"
    2.40 -	   href="/feeds/comments/">entire book</a>.</p> 
    2.41 -      <p>Icons by
    2.42 -	<a href="mailto:mattahan@gmail.com">Paul Davey</a> aka 
    2.43 -        <a href="http://mattahan.deviantart.com/">Mattahan</a>.</p>
    2.44 -    </div>
    2.45 -
    2.46 -    </div>
    2.47 -  </body>
    2.48 -
    2.49 -  <script language="javascript" src="icons/imgadjust.js"
    2.50 -	  type="text/javascript">
    2.51 -  </script>
    2.52 -  <script type="text/javascript" src="/support/javascript/hsbook.js">
    2.53 -  </script>
    2.54 -
    2.55 -</html>