| commit 559: | 3ae283e0220a |
| parent 558: | c4d10f2fb8a5 |
| branch: | default |
add top and bottom nav bars to match the rest of my site
Changed (Δ982 bytes):
raw changeset »
sphinx/templates/web/base.html (3 lines added, 1 lines removed)
sphinx/templates/web/layout.html (26 lines added, 3 lines removed)
Up to file-list sphinx/templates/web/base.html:
72 |
72 |
|
73 |
73 |
<div id="content"> |
74 |
74 |
{% block content %} |
75 |
{% block relbar1 %}{% endblock %} |
|
75 |
76 |
|
76 |
77 |
<h2>Welcome to Leaves.</h2> |
77 |
78 |
<p>Welcome to Leaves, a static, 3 column layout made with your usual CSS and XHTML. It is able to correctly accommodate any font size increases or shrinkages (Is that a word?). It seems to work fine in Firefox, Opera, Internet Explorer and Safari. It's more minimal than other designs, because I think images (drop shadows, giant header images) are being obsessively over used these days. I think it detracts from the content and shoves way too much information to a viewer all at the same time, so here you go: Leaves, a minimalist design. Feel free to massacre or change the design to your liking. Well, I guess it's time for some more Latin. <strong>If you want me to create a custom design for you, feel free to drop me a line anytime at web@smallpark.org </strong></p> |
78 |
79 |
|
80 |
{% block relbar2 %}{% endblock %} |
|
79 |
81 |
{% endblock %} |
80 |
82 |
|
81 |
83 |
{% block addthis %} |
85 |
87 |
{% block comments %} |
86 |
88 |
<!-- Disqus --> |
87 |
89 |
<div id="disqus_wrapper"> |
88 |
< |
|
90 |
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/doughellmann/embed.js"></script><noscript><a href="http://doughellmann.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> |
|
89 |
91 |
</div> |
90 |
92 |
{% endblock %} |
91 |
93 |
</div> |
Up to file-list sphinx/templates/web/layout.html:
1 |
1 |
{% extends "base.html" %} |
2 |
2 |
|
3 |
{%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} |
|
4 |
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} |
|
5 |
||
6 |
{%- macro relbar() %} |
|
7 |
<div class="related"> |
|
8 |
<h3>{{ _('Navigation') }}</h3> |
|
9 |
<ul> |
|
10 |
{%- for rellink in rellinks %} |
|
11 |
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}> |
|
12 |
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}" |
|
13 |
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a> |
|
14 |
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li> |
|
15 |
{%- endfor %} |
|
16 |
{%- block rootrellink %} |
|
17 |
<li><a href="{{ pathto(master_doc) }}">PyMOTW</a>{{ reldelim1 }}</li> |
|
18 |
{%- endblock %} |
|
19 |
{%- for parent in parents %} |
|
20 |
<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li> |
|
21 |
{%- endfor %} |
|
22 |
{%- block relbaritems %} {% endblock %} |
|
23 |
</ul> |
|
24 |
</div> |
|
25 |
{%- endmacro %} |
|
26 |
||
3 |
27 |
{% block title %}{{ title }} - Python Module of the Week{% endblock %} |
4 |
28 |
|
5 |
29 |
{% block head_before_css %} |
73 |
97 |
<a href="{{ next.link|e }}" title="next chapter"><strong>Next:</strong> {{ next.title }}</a><br/> |
74 |
98 |
{%- endif %} |
75 |
99 |
{% endif %} |
76 |
<a href="{{ pathto("modindex") }}"><strong>All Modules</strong></a><br/> |
|
77 |
<a href="{{ pathto("genindex") }}"><strong>Index</strong></a><br/> |
|
78 |
<a href="/PyMOTW/"><strong>Home</strong></a><br/> |
|
79 |
100 |
|
80 |
101 |
{%- if show_source and has_source and sourcename %} |
81 |
102 |
<h3>{{ _('This Page') }}</h3> |
94 |
115 |
{% endblock %} |
95 |
116 |
|
96 |
117 |
{% block content %} |
118 |
{%- block relbar1 %}{{ relbar() }}{% endblock %} |
|
97 |
119 |
{% block body %}{% endblock %} |
120 |
{%- block relbar2 %}{{ relbar() }}{% endblock %} |
|
98 |
121 |
{% endblock %} |
99 |
122 |
|
100 |
123 |
{% block footer %} |
