aboutsummaryrefslogtreecommitdiffstats
path: root/bootlex/templates/base.html
blob: c7dbb8a4a66e76c3487cd5c4fa259a9fba97033f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ DEFAULT_LANG }}">
  <head>
    {% block head %}
    <title>{% block title %}{% endblock title %} - {{ SITENAME }}</title>
    <link href="http://fonts.googleapis.com/css?family=Arimo:400,700|Inika" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/pastie.css" />
    {% endblock head %}
    
    {% include 'analytics.html' %}
    
  </head>

  <body>
    <div class="container">
      <div class="row">
        <div class="span8">
          {% block content %}
          {% endblock %}
        </div>
        <div class="span3 offset1">
          <div class="well">
            <ul class="nav nav-list">
              <li class="nav-header">Blog</li>
              <li {% if page_name == 'index' %}class="active"{% endif %}><a href="{{ SITEURL }}">Index</a></li>
              <li {% block menu_entry_tag %}{% endblock %}><a href="{{ SITEURL }}tags/">Tags</a></li>
              <li {% block menu_entry_archive %}{% endblock %}><a href="{{ SITEURL }}archives/">Archiv</a></li>
              {% if DISPLAY_PAGES_ON_MENU %}
              {% if PAGES %}
              <li class="nav-header">Seiten</li>
              {% for p in PAGES %}
              <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
              {% endfor %}
              {% endif %}
              {% else %}
{#            {% for cat, null in categories %}
              <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}category/{{ cat }}/">{{ cat }}</a></li>
              {% endfor %}
#}
              {% endif %}
              {% if MENUITEMS %}
              <li class="nav-header">Anderes</li>
              {% for title, link in MENUITEMS %}
              <li><a href="{{ link }}">{{ title }}</a></li>
              {% endfor %}
              {% endif %}
              {% if LINKS %}
              <li class="nav-header">Links</li>
              {% for title, link in LINKS %}
              <li><a href="{{ link }}">{{ title }}</a></li>
              {% endfor %}
              {% endif %}
            </ul>
          </div><!-- /#menu --> 
        </div>
      </div>
      
      <hr />
      
      <div class="row">
        <div class="span12">
          <div id="about">
            <p>Proudly powered by <a href="http://twitter.github.com/bootstrap/">bootstrap</a>, <a href="http://docs.notmyidea.org/alexis/pelican/">pelican</a>, <a href="http://python.org">python</a> and <a href="http://www.julo.ch/about/">Alex</a>!</p>
          </div><!-- /#about -->
        </div><!-- /#contentinfo -->
      </div>
    </div>
    
    {% if DISQUS_SITENAME %}
    <script type="text/javascript">
        /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
        var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
    
        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function () {
            var s = document.createElement('script'); s.async = true;
            s.type = 'text/javascript';
            s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
            (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
        }());
    </script>
    {% endif %}
    
  </body>
</html>