Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RSS and Twitter favicons #648

Merged
merged 2 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _data/social-media.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
atom:
href: 'feed.xml'
title: 'Atom Feed'
fa-icon: 'fa-rss'

twitter:
href: 'https://twitter.com/bitcoincoreprs'
title: 'Twitter'
fa-icon: 'fa-twitter-square'
3 changes: 3 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<header>
<div class="logo">
<div class="social-media-links" style="display: inline; float: right;">
{% include social-media-links.html %}
</div>
<a href="{{ site.github.url }}/" class="logo">{{ site.data.settings.title }}</a>
</div>
<nav>
Expand Down
9 changes: 9 additions & 0 deletions _includes/social-media-links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% if site.data.social-media %}
<div id="social-media">
{% assign sm = site.data.social-media %}
{% for entry in sm %}
{% assign key = entry | first %}
<a href="{{ sm[key].href }}" title="{{ sm[key].title }}"><i class="fa {{ sm[key].fa-icon }}" style="color: #000000;"=></i></a>
{% endfor %}
</div>
{% endif %}
5 changes: 5 additions & 0 deletions assets/css/all.sass
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,8 @@ a
.log-msg
padding-left: 0px
white-space: pre-wrap

.social-media-links
font-size: 50%
display: flex
align-items: flex-end
3 changes: 2 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ on GitHub.

<span class="question">How do I take part?</span> Just show up on IRC! See
[Attending your first PR Review Club](/your-first-meeting/) for more tips
on how to participate.
on how to participate. To stay up to date on newly announced review clubs,
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>.

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