comparison manuals/theme/better/layout.html @ 934:519b14c5260d

(issue89) Add sphinx better theme
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 17:16:53 +0200
parents
children
comparison
equal deleted inserted replaced
933:af27328bea9d 934:519b14c5260d
1 {%- extends "basic/layout.html" %}
2 {%- from "relbar.html" import relbar_top with context %}
3 {%- from "relbar.html" import relbar_bottom with context %}
4
5 {#- ### head ### -#}
6
7 {%- block extrahead %}
8
9 {#- make mobile reasonable #}
10 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
11
12 {%- for css_file in theme_cssfiles %}
13 {%- if css_file.startswith('http') %}
14 <link rel="stylesheet" href="{{ css_file }}" type="text/css" />
15 {%- else %}
16 <link rel="stylesheet" href="{{ pathto(css_file, 1) }}" type="text/css" />
17 {%- endif %}
18 {%- endfor %}
19
20 {%- for js_file in theme_scriptfiles %}
21 <script src="{{ pathto(js_file, 1) }}" type="text/javascript"></script>
22 {%- endfor %}
23
24 {%- if theme_inlinecss %}
25 <style type="text/css">{{ theme_inlinecss|safe }}</style>
26 {%- endif %}
27
28 {%- block userhead %}
29 {%- endblock %}
30 {%- endblock %}
31
32 {#- ### content ### -#}
33
34 {%- block header %}
35 {%- if theme_showheader|tobool %}
36 <header id="pageheader"><h1><a href="{{ pathto(master_doc) }} ">
37 {{ docstitle }}
38 </a></h1></header>
39 {%- endif %}
40 {%- endblock %}
41
42 {%- block relbar1 -%}{{ relbar_top() }}{%- endblock -%}
43 {%- block relbar2 -%}{{ relbar_bottom() }}{%- endblock -%}
44
45 {%- block footer %}
46 <footer id="pagefooter">
47
48 {%- if show_copyright %}
49 {%- if hasdoc('copyright') %}
50 {% trans path=pathto('copyright'), copyright=copyright|e %}
51 <a href="{{ path }}">&copy; {{ copyright }} </a>.
52 {% endtrans %}
53 {%- else %}
54 {%- trans copyright=copyright|e -%}
55 &copy; {{ copyright }}.
56 {%- endtrans %}
57 {%- endif %}
58 {%- endif %}
59
60 {%- if last_updated %}
61 {%- trans last_updated=last_updated|e -%}
62 Last updated on {{ last_updated }}.
63 {%- endtrans %}
64 {%- endif %}
65
66 {%- if show_sphinx %}
67 Created using <a href="http://sphinx-doc.org/">Sphinx</a>
68 {{ sphinx_version }}
69 {%- if theme_linktotheme|tobool %}
70 with the <a href="http://github.com/irskep/sphinx-better-theme">
71 better</a> theme
72 {%- endif %}.
73 {%- else %}
74 {%- if theme_linktotheme %}
75 This site uses the
76 <a href="http://github.com/irskep/sphinx-better-theme">
77 &ldquo;better&rdquo;</a>
78 theme for Sphinx.
79 {%- endif %}
80 {%- endif %}
81
82 </footer>
83
84 {% if theme_ga_ua %}
85 <script>
86 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
87 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
88 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
89 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
90
91 ga('create', '{{ theme_ga_ua }}', '{{ theme_ga_domain }}');
92 ga('send', 'pageview');
93 </script>
94 {% endif %}
95 {%- endblock %}

http://wald.intevation.org/projects/trustbridge/