Skip to content

Commit 4ebf3ec

Browse files
committed
update sidebar
1 parent 5f4e1c2 commit 4ebf3ec

File tree

5 files changed

+32
-11
lines changed

5 files changed

+32
-11
lines changed

static/img/logos/mapbox.png

9.88 KB
Loading

theme/templates/dual.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div class="pn">
2+
<div class="pnh"><h3>Sponsored By</h3></div>
3+
<div class="pnb">
4+
<a href="https://rollbar.com/"><img src="/img/logos/rbw.jpg" alt="Rollbar logo" width="100%" style="padding:12px 0 18px"></a>
5+
<p class="sps">Fix errors in your Python code
6+
before your users see them by
7+
<a href="https://rollbar.com/">monitoring with Rollbar</a>.
8+
</p>
9+
<hr>
10+
<a href="https://www.mapbox.com/" style="border:none"><img src="/img/logos/mapbox.png" alt="Mapbox logo." width="100%" style="padding:12px 0 18px"></a>
11+
<p class="sps">Easily build maps, search and navigation into
12+
your Python applications with
13+
<a href="https://www.mapbox.com/">Mapbox</a>.
14+
</div>
15+
</div>

theme/templates/index-sidebar.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@
44
<div class="pnb">
55
<a href="/">Full Stack Python</a> is an <a href="https://github.com/mattmakai/fullstackpython.com">open book</a> that explains
66
concepts in plain language and provides great resources
7-
on those topics.
8-
<hr>
9-
<a href="/table-of-contents.html">All topics</a> lists
10-
every Python subject on the site.
11-
<hr>
12-
Updates via <a href="/email.html">newsletter</a>,
13-
<a href="https://twitter.com/fullstackpython">Twitter</a> &amp;
14-
<a href="https://www.facebook.com/fullstackpython">Facebook</a>.
7+
<a href="/table-of-contents.html">on all topics</a>.
158
</div>
169
</div>
17-
{% include "rollbar.html" %}
10+
{% include "dual.html" %}
1811
</div>

theme/templates/mapbox.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="pn">
2+
<div class="pnh"><h3>Sponsored By</h3></div>
3+
<div class="pnb">
4+
<a href="https://www.mapbox.com/" style="border:none"><img src="/img/logos/mapbox.png" alt="Mapbox logo." width="100%" style="padding:12px 0 18px"></a>
5+
<p class="sps">Easily build maps, search and navigation into
6+
your Python applications with
7+
<a href="https://www.mapbox.com/">Mapbox</a>.
8+
</p>
9+
</div>
10+
</div>

theme/templates/sponsor.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{% if page.slug == 'introduction' or page.slug == 'django' or page.slug == 'flask' or page.slug == 'bottle' or page.slug == 'web-development' or page.slug == 'web-frameworks' or page.slug =='morepath' or page.slug == 'python-programming-language' or page.slug == 'comprehensions' or page.slug == 'generators' or page.slug == 'best-python-resources' or page.slug == 'best-python-videos' or page.slug == 'learning-programming' or page.slug == 'why-use-python' or page.slug == 'best-python-podcasts' or page.slug == 'development-environments' or page.slug == 'vim' or page.slug == 'emacs' or page.slug == 'shells' %}
22
{% include "rp-advert.html" %}
3-
{% elif page.slug == 'monitoring' or page.slug == 'devops' or page.slug == 'caching' or page.slug == 'web-analytics' or page.slug == 'servers' or page.slug == 'docker' or page.slug == 'continuous-integration' or page.slug == 'wsgi-servers' or page.slug == 'green-unicorn-gunicorn' or page.slug == 'serverless' or page.slug == 'aws-lambda' or page.slug == 'web-servers' or page.slug == 'apache-http-server' or page.slug == 'nginx' or page.slug == 'caddy' or page.slug == 'debugging' or page.slug == 'testing' or page.slug == 'deployment' or page.slug == 'platform-as-a-service' or page.slug == 'static-content' or page.slug == 'enterprise-python' %}
3+
{% endif %}
4+
{% if page.sortorder[0:2] == "04" or page.sortorder[0:2] == "05" or page.sortorder[0:2] == "06" %}
45
{% include "rollbar.html" %}
5-
{% else %}
6+
{% endif %}
7+
{% if page.sortorder[0:2] == "01" or page.sortorder[0:2] == "02" or page.sortorder[0:2] == "03" or page.sortorder[0:2] == "04" %}
8+
{% include "mapbox.html" %}
69
{% endif %}

0 commit comments

Comments
 (0)