Skip to content

Commit 478c7a3

Browse files
committed
social: remove twitter
1 parent f687294 commit 478c7a3

File tree

6 files changed

+10
-18
lines changed

6 files changed

+10
-18
lines changed

content/pages/06_contact.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ save_as: contact.html
4646
</div>
4747

4848

49-
<h3>Sur Twitter</h3>
49+
<h3>Sur Mastodon</h3>
5050
<div class="row">
51-
<section class="cpt-twitter">
51+
<section class="cpt-mastodon">
5252
<ul>
53-
<li><a href="https://twitter.com/gitoyen">@gitoyen</a> pour la communication formelle, et les annonces.</li>
54-
<li><a href="https://twitter.com/as20766">@as20766</a> plus informel.</li>
53+
<li><a href="https://mamot.fr/@gitoyen">@gitoyen</a> pour la communication formelle, et les annonces.</li>
54+
<li><a href="https://mstdn.fr/@as20766">@as20766</a> plus informel.</li>
5555
</ul>
5656
</section>
5757
</div>

pelicanconf.py

-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ def is_active(ctx, page):
3131
AUTHOR_FEED_RSS = None
3232
RSS_FEED_SUMMARY_ONLY = False
3333

34-
# Social
35-
TWITTER_USERNAME = 'gitoyen'
36-
37-
3834
JINJA_FILTERS = {'is_active': is_active}
3935

4036
THEME = './theme'

theme/static/css/main.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ Header
257257
vertical-align: middle;
258258
}
259259

260-
#banner nav li.twitter a {
261-
background-image: url(../images/twitter.png);
260+
#banner nav li.mastodon a {
261+
background-image: url(../images/mastodon.png);
262262
}
263263

264264
#banner nav li.rss a {
@@ -357,8 +357,8 @@ Header
357357
background-position: left;
358358
padding-left: 30px;
359359
}
360-
#banner nav li.twitter a:after {
361-
content: "Twitter";
360+
#banner nav li.mastodon a:after {
361+
content: "Mastodon";
362362
line-height: 18px;
363363
}
364364
#banner nav li.rss a:after {
@@ -692,7 +692,7 @@ Extras
692692
.social a[href*='slideshare.net'] {background-image: url('../images/icons/slideshare.png');}
693693
.social a[href*='speakerdeck.com'] {background-image: url('../images/icons/speakerdeck.png');}
694694
.social a[href*='stackoverflow.com'] {background-image: url('../images/icons/stackoverflow.png');}
695-
.social a[href*='twitter.com'] {background-image: url('../images/icons/twitter.png');}
695+
.social a[href*='mamot.fr'] {background-image: url('../images/icons/mastodon.png');}
696696
.social a[href*='vimeo.com'] {background-image: url('../images/icons/vimeo.png');}
697697
.social a[href*='youtube.com'] {background-image: url('../images/icons/youtube.png');}
698698

theme/templates/article.html

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ <h1 class="entry-title col1of1">
1212
</nav>
1313
{% endif %}
1414
<div {% if article.toc %}class="col2of3"{% else %}class="col1of1"{% endif %}>
15-
{% include 'twitter.html' %}
1615
{% include 'article_infos.html' %}
1716
{{ article.content }}
1817
</div><!-- /.entry-content -->

theme/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</li>
4848
{% endfor %}
4949
{% endif %}
50-
<li class="icon twitter"><a href="https://twitter.com/{{ TWITTER_USERNAME }}"> </a></li>
50+
<li class="icon mastodon"><a href="https://mamot.fr/@gitoyen"> </a></li>
5151
<li class="icon rss"><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}"> </a></li>
5252
</ul>
5353
</nav>

theme/templates/twitter.html

-3
This file was deleted.

0 commit comments

Comments
 (0)