Skip to content

Commit 3c94815

Browse files
authored
Merge pull request #648 from stickies-v/add-icons
Add RSS and Twitter favicons
2 parents 6c63111 + b7497c0 commit 3c94815

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

_data/social-media.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
atom:
2+
href: 'feed.xml'
3+
title: 'Atom Feed'
4+
fa-icon: 'fa-rss'
5+
6+
twitter:
7+
href: 'https://twitter.com/bitcoincoreprs'
8+
title: 'Twitter'
9+
fa-icon: 'fa-twitter-square'

_includes/header.html

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<header>
22
<div class="logo">
3+
<div class="social-media-links" style="display: inline; float: right;">
4+
{% include social-media-links.html %}
5+
</div>
36
<a href="{{ site.github.url }}/" class="logo">{{ site.data.settings.title }}</a>
47
</div>
58
<nav>

_includes/social-media-links.html

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% if site.data.social-media %}
2+
<div id="social-media">
3+
{% assign sm = site.data.social-media %}
4+
{% for entry in sm %}
5+
{% assign key = entry | first %}
6+
<a href="{{ sm[key].href }}" title="{{ sm[key].title }}"><i class="fa {{ sm[key].fa-icon }}" style="color: #000000;"=></i></a>
7+
{% endfor %}
8+
</div>
9+
{% endif %}

assets/css/all.sass

+5
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,8 @@ a
162162
.log-msg
163163
padding-left: 0px
164164
white-space: pre-wrap
165+
166+
.social-media-links
167+
font-size: 50%
168+
display: flex
169+
align-items: flex-end

index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ on GitHub.
2727

2828
<span class="question">How do I take part?</span> Just show up on IRC! See
2929
[Attending your first PR Review Club](/your-first-meeting/) for more tips
30-
on how to participate.
30+
on how to participate. To stay up to date on newly announced review clubs,
31+
you can follow us on <a href="{{ site.data.social-media.twitter.href }}">Twitter</a> or via the <a href="{{ site.data.social-media.atom.href }}">Atom feed</a>.
3132

3233
<span class="question">Who runs this?</span> &nbsp;Upcoming meetings are
3334
scheduled by {{ site.coordinator }}.

0 commit comments

Comments
 (0)