Skip to content

Commit 456960f

Browse files
committed
Add RSS and Twitter favicons to website header
Make it easier to see channels to stay up to date on new review clubs etc. New icons can easily be added by updating _data/social-media.yml.
1 parent 3367bcc commit 456960f

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
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,6 +1,9 @@
11
<header>
22
<div class="logo">
33
<a href="{{ site.github.url }}/" class="logo">{{ site.data.settings.title }}</a>
4+
<div class="social-media-links" style="display: inline; float: right;">
5+
{% include social-media-links.html %}
6+
</div>
47
</div>
58
<nav>
69
|

_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

0 commit comments

Comments
 (0)