theme/templates/base.html

changeset 36
9507107a1133
child 39
3e2fca8a5e7c
equal deleted inserted replaced
35:bb011397a99c 36:9507107a1133
1 <!doctype html>
2 <html class="no-js" lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <link rel="stylesheet" href="{{ SITEURL}}/theme/css/foundation.min.css" media="all">
7 <script type="text/javascript" src="{{ SITEURL }}/theme/js/modernizr.js"></script>
8 <link href='https://fonts.googleapis.com/css?family=Exo+2:400,300,700,300italic,400italic,700italic,900,900italic' rel='stylesheet' type='text/css'>
9 <link rel="stylesheet" href="{{ SITEURL }}/theme/css/lamboz.css" media="all">
10 {% block head %}
11 <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
12 <meta charset="utf-8" />
13 {% if FEED_ALL_ATOM %}
14 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
15 {% endif %}
16 {% if FEED_ALL_RSS %}
17 <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
18 {% endif %}
19 {% if FEED_ATOM %}
20 <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
21 {% endif %}
22 {% if FEED_RSS %}
23 <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
24 {% endif %}
25 {% if CATEGORY_FEED_ATOM and category %}
26 <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
27 {% endif %}
28 {% if CATEGORY_FEED_RSS and category %}
29 <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
30 {% endif %}
31 {% if TAG_FEED_ATOM and tag %}
32 <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
33 {% endif %}
34 {% if TAG_FEED_RSS and tag %}
35 <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
36 {% endif %}
37 {% endblock head %}
38 </head>
39 <body>
40 <div class="pages">
41 <ul>
42 <li class="home"><a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a></li>
43 {% for p in pages %}
44 <li {% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
45 {% endfor %}
46 {% set cnt=5 %}
47 {% for cat,l in categories %}
48 {% if cnt >= 0 %}
49 <li class="category"><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>({{ l | length }})</li>
50 {% set cnt=cnt-1 %}
51 {% endif %}
52 {% endfor %}
53
54 </ul>
55 </div>
56 {% block pageheader %}
57 <div class="hp-header">
58 <div class="page-header">
59 <div class="content-header">
60 <div id="title-block">
61 <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
62 <p class="blurb">{{ SITESUBTITLE }}</p>
63 </div>
64 </div>
65 </div>
66 </div>
67 {% endblock %}
68 <div class="content">
69 <div class="data-holder">
70 <div class="row">
71 <div class="large-9 content-column column">
72 {% block content %}
73 {% endblock %}
74 </div>
75
76 <div class="large-3 aside column">
77 {% block sidecontent %}
78 {% endblock %}
79 </div>
80 </div>
81 </div>
82 </div>
83 <div class="footer">
84 <div class="data-holder">
85 {% block footer %}
86 <div class="row">
87 <div class="large-3 column">
88 {% include 'credits.html' %}
89 </div>
90 <div class="large-3 tag-cloud column">
91 <h3>Tags</h3>
92 <ul>
93 {% for t,tx in tags %}
94 <li{% if t==tag %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ t.url }}">{{ t }}</a>({{ tx | length }})</li>
95 {% endfor %}
96 </ul>
97 </div>
98 <div class="large-3 links column">
99 <h3>Links</h3>
100 <ul>
101 {% for title,link in LINKS %}
102 <li><a href="{{ link }}">{{ title }}</a></li>
103 {% endfor %}
104 </ul>
105 </div>
106 <div class="large-3 category-column column">
107 <h3>Categories</h3>
108 <ul>
109 {% for cat,l in categories %}
110 <li{% if cat==category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a> ({{ l | length }})</li>
111 {% endfor %}
112 </ul>
113 </div>
114 </div>
115 {% endblock %}
116 </div>
117 {% include 'trademark.html' %}
118 </div>
119 </body>
120 </html>

mercurial