Skip to content

Commit d38199e

Browse files
committed
Adds a blockquote to the top of each page to display an inspirational quote.
1 parent 955ff6c commit d38199e

3 files changed

Lines changed: 387 additions & 351 deletions

File tree

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,52 @@
1-
{% import "glossary.html" as glossary %}
2-
3-
<div id="body-top">
4-
{% if pagename == "search" %}
5-
{% set title = _('Search') %}
6-
{% endif %}
7-
{% if pagename != "index" %}
8-
<a href="{{ pathto(master_doc) }}"><i class="fa fa-folder-o"></i>&nbsp; {{glossary.root_page}}</a>&nbsp;
9-
<a><i class="fa {% if theme_direction == "ltr" %} fa-angle-right{% else %} fa-angle-left{% endif %}"></i></a>&nbsp;
10-
<a><i class="fa fa-folder-open-o"></i>&nbsp; {{ title }}</a>
11-
{% else %}
12-
<a><i class="fa fa-folder-o"></i>&nbsp; {{glossary.root_page}}</a>
13-
{% endif %}
14-
{% if pagename != "search" %}
15-
{% if display_github %}
16-
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-github"></i>&nbsp; {{glossary.on_github}}</a>
17-
{% elif display_bitbucket %}
18-
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-bitbucket"></i>&nbsp; {{glossary.on_bitbucket}}</a>
19-
{% elif show_source and source_url_prefix %}
20-
<a href="{{ source_url_prefix }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-code"></i>&nbsp; {{glossary.on_source}}</a>
21-
{% elif show_source and has_source and sourcename %}
22-
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow" id="top-src" target="_blank"><i class="fa fa-code"></i>&nbsp; {{glossary.on_source}}</a>
23-
{% endif %}
24-
{% endif %}
25-
</div>
26-
<div id="body-donate">
27-
28-
<div class="top-links top-red">
29-
<a href="/support-report.html" target="_blank">
30-
گزارش حمایت
31-
</a>
32-
</div>
33-
34-
35-
<div class="top-links top-green">
36-
<a href="/support.html" target="_blank">
37-
<i class="fa fa-gift" aria-hidden="true"></i> حمایت مالی
38-
</a>
39-
</div>
40-
41-
42-
43-
<div class="top-links" style="direction: ltr;float: right;">
44-
<a class="github-button" href="https://github.com/saeiddrv/PythonPersianTutorial" data-size="large" data-show-count="true" aria-label="Star saeiddrv/PythonPersianTutorial on GitHub">Star</a>
45-
<div>
46-
47-
</div>
1+
<blockquote class="inspirational-quote">
2+
"نه مرگ آنقدر ترسناک است و نه زندگی آنقدر شیرین که انسان برای این دو شرفش را بدهد"
3+
<cite>نامتان جاوید باد</cite>
4+
</blockquote>
5+
6+
{% import "glossary.html" as glossary %}
7+
8+
<div id="body-top">
9+
{% if pagename == "search" %}
10+
{% set title = _('Search') %}
11+
{% endif %}
12+
{% if pagename != "index" %}
13+
<a href="{{ pathto(master_doc) }}"><i class="fa fa-folder-o"></i>&nbsp; {{glossary.root_page}}</a>&nbsp;
14+
<a><i class="fa {% if theme_direction == "ltr" %} fa-angle-right{% else %} fa-angle-left{% endif %}"></i></a>&nbsp;
15+
<a><i class="fa fa-folder-open-o"></i>&nbsp; {{ title }}</a>
16+
{% else %}
17+
<a><i class="fa fa-folder-o"></i>&nbsp; {{glossary.root_page}}</a>
18+
{% endif %}
19+
{% if pagename != "search" %}
20+
{% if display_github %}
21+
<a href="https://{{ github_host|default("github.com") }}/{{ github_user }}/{{ github_repo }}/blob/{{ github_version }}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-github"></i>&nbsp; {{glossary.on_github}}</a>
22+
{% elif display_bitbucket %}
23+
<a href="https://bitbucket.org/{{ bitbucket_user }}/{{ bitbucket_repo }}/src/{{ bitbucket_version}}{{ conf_py_path }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-bitbucket"></i>&nbsp; {{glossary.on_bitbucket}}</a>
24+
{% elif show_source and source_url_prefix %}
25+
<a href="{{ source_url_prefix }}{{ pagename }}{{ source_suffix }}" id="top-src" target="_blank"><i class="fa fa-code"></i>&nbsp; {{glossary.on_source}}</a>
26+
{% elif show_source and has_source and sourcename %}
27+
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow" id="top-src" target="_blank"><i class="fa fa-code"></i>&nbsp; {{glossary.on_source}}</a>
28+
{% endif %}
29+
{% endif %}
30+
</div>
31+
<div id="body-donate">
32+
33+
<div class="top-links top-red">
34+
<a href="/support-report.html" target="_blank">
35+
گزارش حمایت
36+
</a>
37+
</div>
38+
39+
40+
<div class="top-links top-green">
41+
<a href="/support.html" target="_blank">
42+
<i class="fa fa-gift" aria-hidden="true"></i> حمایت مالی
43+
</a>
44+
</div>
45+
46+
47+
48+
<div class="top-links" style="direction: ltr;float: right;">
49+
<a class="github-button" href="https://github.com/saeiddrv/PythonPersianTutorial" data-size="large" data-show-count="true" aria-label="Star saeiddrv/PythonPersianTutorial on GitHub">Star</a>
50+
<div>
51+
52+
</div>

0 commit comments

Comments
 (0)