comparison piecrust/resources/theme/_content/templates/default.html @ 3:f485ba500df3

Gigantic change to basically make PieCrust 2 vaguely functional. - Serving works, with debug window. - Baking works, multi-threading, with dependency handling. - Various things not implemented yet.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 10 Aug 2014 23:43:16 -0700
parents
children
comparison
equal deleted inserted replaced
2:40fa08b261b9 3:f485ba500df3
1 <!doctype html>
2 <head>
3 <meta charset="utf-8">
4 <meta name="description" content="{{ site.description }}">
5 <meta name="author" content="{{ site.author }}">
6 <meta name="viewport" content="width=device-width,initial-scale=1">
7 <title>{{ site.title }}{% if page.title %} &mdash; {{ page.title }}{% endif %}</title>
8 {% if site.css %}
9 <link rel="stylesheet" type="text/css" href="{{ site.root }}{{ site.css }}">
10 {% else %}
11 <style type="text/css">
12 body {
13 font-family: 'Baskerville', Georgia, Times, serif;
14 font-size: 1.3em;
15 line-height: 1.5em;
16 padding: 0 1.5em;
17 margin: 0;
18 }
19 h1, h2, h3, h4, h5, h6 { font-weight: bold; }
20 h1 { font-size: 2em; line-height: 0.75em; margin: 0.75em 0; }
21 h2 { font-size: 1.5em; line-height: 1em; margin: 1em 0; }
22 h3 { font-size: 1.2em; line-height: 1.25em; margin: 1.25em 0; }
23 h4 { font-size: 1em; line-height: 1.5em; margin: 1.5em 0; }
24 h5 { font-size: 0.8em; line-height: 1.875em; margin: 1.875em 0; }
25 h6 { font-size: 0.75em; line-height: 2em; margin: 2em 0; }
26 p {
27 font-size: 1em;
28 line-height: 1.5em;
29 margin: 1.5em 0;
30 }
31 code { background: #fee; padding: 0 0.3em; }
32 #container > header {
33 text-align: center;
34 }
35 #container > footer {
36 text-align: center;
37 font-style: italic;
38 font-size: 0.8em;
39 color: #888;
40 }
41
42 .site-title {
43 font-size: 2em;
44 font-weight: bold;
45 line-height: 0.75em;
46 margin: 0.75em 0;
47 }
48 .post h2 { margin-bottom: 0.33em; }
49 .date {
50 font-style: italic;
51 font-size: 0.75em;
52 line-height: 0.5em;
53 margin-bottom: 1.5em;
54 }
55 blockquote {
56 font-style: italic;
57 }
58 </style>
59 {% endif %}
60 </head>
61 <body>
62 <div id="container">
63 <header>
64 {% block header %}
65 {% if page.title %}
66 <p class="site-title"><a href="{{ site.root }}">{{ site.title }}</a></p>
67 {% else %}
68 <h1><a href="{{ site.root }}">{{ site.title }}</a></h1>
69 {% endif %}
70 {% endblock %}
71 </header>
72 <section id="main" role="main">
73 {% block main %}
74 {% if page.title %}
75 <h1 class="page-title">{{ page.title }}</h1>
76 {% endif %}
77
78 {{ content|raw }}
79 {% endblock %}
80 </section>
81 <footer>
82 {% block footer %}
83 {% endblock %}
84 {{ piecrust.debug_info|raw }}
85 <p>{{ piecrust.branding|raw }}</p>
86 </footer>
87 </div>
88 </body>
89 </html>