Skip to content

Commit

Permalink
Remove broken Twitter widget (#2329)
Browse files Browse the repository at this point in the history
* Remove broken Twitter widget

* Remove broken Twitter widget
  • Loading branch information
hugovk committed Nov 21, 2023
1 parent c949855 commit f04b96f
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 84 deletions.
4 changes: 0 additions & 4 deletions static/sass/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2771,10 +2771,6 @@ p.quote-by-organization {
/*<aside class="main-sidebar | right-sidebar | left-sidebar">*/
.left-sidebar .sidebar-widget {
margin-bottom: 0.875em; }
.left-sidebar .twitter-widget {
padding: 0; }
.left-sidebar .twtr-doc {
padding: .75em; }

.jobs-form p {
padding: 0 0.3125em; }
Expand Down
3 changes: 0 additions & 3 deletions static/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1913,9 +1913,6 @@ $colors: $blue, $psf, $yellow, $green, $purple, $red;
margin-bottom: rhythm( .5 );
}

.twitter-widget { padding: 0; }

.twtr-doc { padding: .75em; }
}

.right-sidebar {
Expand Down
4 changes: 0 additions & 4 deletions templates/components/tweets-from-psf.html

This file was deleted.

2 changes: 0 additions & 2 deletions templates/pages/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ <h1 class="page-title">{{ page.title }}</h1>

{% include "components/navigation-widget.html" %}

{% include "components/tweets-from-psf.html" %}

<div class="psf-sidebar-widget sidebar-widget">
{% box 'widget-sidebar-aboutpsf' %}

Expand Down
2 changes: 0 additions & 2 deletions templates/pages/pep-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ <h1 class="page-title">{{ page.title }}</h1>

{% include "components/navigation-widget.html" %}

{% include "components/tweets-from-psf.html" %}

<div class="psf-sidebar-widget sidebar-widget">
{% box 'widget-sidebar-aboutpsf' %}

Expand Down
2 changes: 0 additions & 2 deletions templates/psf/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ <h1 class="page-title">{{ page.title }}</h1>

</div>

{% include "components/tweets-from-psf.html" %}

</aside>

{% endblock left_sidebar %}
33 changes: 1 addition & 32 deletions templates/python/inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -623,40 +623,9 @@ <h1 id="form">Form Example</h1>

{% block left_sidebar %}
<aside class="left-sidebar" role="secondary">

{% include "components/navigation-widget.html" %}

<div class="twitter-widget sidebar-widget">
<script type="text/javascript" src="//widgets.twimg.com/j/2/widget.js"></script>
<script type="text/javascript">// <![CDATA[
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 3,
interval: 30000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#f2f2f2',
color: '#666666'
},
tweets: {
background: '#f2f2f2',
color: '#666666',
links: '#3776ab'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('ThePSF').start();
// ]]></script>
</div>

<div class="psf-sidebar-widget sidebar-widget">
<h3 class="widget-title">The PSF</h3>
<p>The Python Software Foundation is the organization behind Python. Become a member of the PSF and help advance the software and our mission. </p>
Expand Down
2 changes: 0 additions & 2 deletions templates/successstories/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@

</div>

{% include "components/tweets-from-psf.html" %}

</aside>
{% endblock left_sidebar %}
34 changes: 1 addition & 33 deletions templates/waitforit.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,5 @@ <h1 class="giga">Wait for it&hellip;</h1>

{% block left_sidebar %}
<aside class="left-sidebar" role="secondary">

<div class="twitter-widget sidebar-widget">
<script type="text/javascript" src="//widgets.twimg.com/j/2/widget.js"></script>
<script type="text/javascript">// <![CDATA[
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 3,
interval: 30000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#efefef',
color: '#666666'
},
tweets: {
background: '#f2f2f2',
color: '#666666',
links: '#3776ab'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('ThePSF').start();
// ]]></script>
</div>

</aside>
{% endblock left_sidebar %}
{% endblock left_sidebar %}

0 comments on commit f04b96f

Please sign in to comment.