1 {# Layout modifications for the Pylit documentation #}
2 {# Filename: .templates/layout.html #}
3 {% extends '!layout.html' %}
5 <!-- Navigation bar -->
6 <!-- ============================================= -->
8 <!-- Add current page -->
11 {%- block relbaritems %}
13 <!-- <li>{{ pagename }}</li> -->
14 <!-- Does not work: places the up link on the next line -->
15 <!-- {% if parents %} -->
16 <!-- <li class="right"><a href="{{ parents[-1].link }}">up</a> {{ reldelim2 }}</li> -->
20 <!-- use URL path separator as delimiter -->
21 {%- set reldelim1 = ' / ' %}
25 <!-- ============================================= -->
27 <!-- Table Of Contents -->
28 <!-- ----------------- -->
30 <!-- Shorter heading -->
32 {%- block sidebartoc %}
35 <!-- Contents of current page -->
37 <!-- Site Contents -->
38 <!-- {{ toctree() }} -->
45 <!-- ----------------- -->
47 <!-- Shorter headings -->
50 {%- block sidebarrel %}
52 <h4>Previous Page
</h4>
54 <a href=
"{{ prev.link|e }}" title=
"previous section">{{ prev.title }}
</a>
60 <a href=
"{{ next.link|e }}" title=
"next section">{{ next.title }}
</a>
63 {%- if pagename !=
"index" %}
67 <a href=
"{{ parents[-1].link|e }}" title=
"up">{{ parents[-
1].title }}
</a>
69 <a href=
"{{ pathto('index') }}" title=
"up">{{ shorttitle }}
</a>
77 <!-- --------------------------------------------- -->
78 <!-- smaller text area (size="12" instead of "18") -->
80 {%- block sidebarsearch %}
81 {%- if pagename !=
"search" %}
82 <h3>Search this site
</h3>
83 <form class=
"search" action=
"{{ pathto('search') }}" method=
"get">
84 <input type=
"text" name=
"q" size=
"12" />
85 <input type=
"submit" value=
"Go" />
86 <input type=
"hidden" name=
"check_keywords" value=
"yes" />
87 <input type=
"hidden" name=
"area" value=
"default" />
89 {%- if builder == 'web' %}
90 <p style=
"font-size: 90%">Enter a module, class or function name.
</p>
97 <!-- --------------------------------------------- -->
102 <!-- for hosting this site. -->