theme/templates/base.html

Wed, 22 Jun 2016 01:20:59 +0200

author
David Douard <david.douard@logilab.fr>
date
Wed, 22 Jun 2016 01:20:59 +0200
changeset 59
cc8413dfcf14
parent 40
2a30ebfd851f
child 67
2c795abff532
permissions
-rw-r--r--

[hp34970a] part 2

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

mercurial