Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 920b1e7

Browse files
committedJul 22, 2024
Use simple-icons
1 parent f192eb7 commit 920b1e7

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed
 

‎static/social/discord.svg

+1
Loading

‎static/social/github.svg

+1
Loading

‎static/social/rss.svg

+1
Loading

‎static/social/twitter.svg

+1
Loading

‎templates/includes/home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 class="post-list-heading">{{ section.title | default(value="Latest Blog Post
3939
<a class="btn" id="all-blog-posts" href="{{ get_url(path='blog/') }}">All Blog Posts</a>
4040
<a href="{{ get_url(path='rss.xml') }}">
4141
<svg class="svg-icon orange"><use xlink:href="{{ get_url(path='minima-social-icons.svg#rss') }}"></use></svg><span>Subscribe</span>
42-
</a>
42+
</a>
4343
{% include "includes/email_signup.html" %}
4444
</p>
4545
</div>

‎templates/includes/social.html

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
{% set social = config.extra.social_links -%}
22

33
<ul class="social-links">
4-
{% if social.dribbble %}<li><a href="https://dribbble.com/{{ social.dribbble | urlencode }}" title="{{ social.dribbble }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#dribbble') }}"></use></svg></a></li>{% endif %}
5-
{% if social.facebook %}<li><a href="https://www.facebook.com/{{ social.facebook | urlencode }}" title="{{ social.facebook }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#facebook') }}"></use></svg></a></li>{% endif %}
6-
{% if social.flickr %}<li><a href="https://www.flickr.com/photos/{{ social.flickr | urlencode }}" title="{{ social.flickr }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#flickr') }}"></use></svg></a></li>{% endif %}
7-
{% if social.github %}<li><a href="https://github.com/{{ social.github | urlencode }}" title="{{ social.github }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#github') }}"></use></svg> GitHub (rust-gamedev)</a></li>{% endif %}
8-
{% if social.instagram %}<li><a href="https://www.instagram.com/{{ social.instagram | urlencode }}" title="{{ social.instagram }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#instagram') }}"></use></svg></a></li>{% endif %}
9-
{% if social.linkedin %}<li><a href="https://www.linkedin.com/in/{{ social.linkedin | urlencode }}" title="{{ social.linkedin }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#linkedin') }}"></use></svg></a></li>{% endif %}
10-
{% if social.pinterest %}<li><a href="https://www.pinterest.com/{{ social.pinterest | urlencode }}" title="{{ social.pinterest }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#pinterest') }}"></use></svg></a></li>{% endif %}
11-
{% if social.mastodon %}{% for mst in social.mastodon %}{% if mst.username and mst.instance %}<li><a rel="me" href="https://{{ mst.instance | urlencode}}/@{{ mst.username | urlencode }}" title="{{ mst.username }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#mastodon') }}"></use></svg></a></li>{% endif %}{% endfor %}{% endif %}
12-
{% if social.twitter %}<li><a href="https://twitter.com/{{ social.twitter | urlencode }}" title="{{ social.twitter }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#twitter') }}"></use></svg> Twitter (rust_gamedev)</a></li>{% endif %}
13-
{% if social.youtube %}<li><a href="https://www.youtube.com/{{ social.youtube | urlencode }}" title="{{ social.youtube }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#youtube') }}"></use></svg></a></li>{% endif %}
14-
{% if social.youtube_chanel -%}<li><a href="https://www.youtube.com/channel/{{ social.youtube_channel | urlencode }}" title="{{ social.youtube_channel_name | urlencode | default(value='YouTube') }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#youtube') }}"></use></svg></a></li>{% endif %}
15-
{% if social.telegram %}<li><a href="https://t.me/{{ social.telegram | urlencode }}" title="{{ social.telegram }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#telegram') }}"></use></svg></a></li>{% endif %}
16-
{% if social.microdotblog %}<li><a rel="me" href="https://micro.blog/{{ social.microdotblog | urlencode }}" title="{{ social.microdotblog }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#microdotblog') }}"></use></svg></a></li>{% endif %}
17-
{% if social.discord %}<li><a href="https://discord.gg/{{ social.discord | urlencode }}" title="Discord"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#discord') }}"></use></svg> Discord (#wg-gamedev)</a></li>{% endif %}
18-
{% if social.rss %}<li><a href="{{ get_url(path='rss.xml') }}" title="{{ social.rss }}"><svg class="svg-icon grey"><use xlink:href="{{ get_url(path='minima-social-icons.svg#rss') }}"></use></svg> RSS feed</a></li>{% endif %}
4+
{% if social.github %}<li><a href="https://github.com/{{ social.github | urlencode }}" title="{{ social.github }}"><svg class="svg-icon"><use xlink:href="{{ get_url(path='social/github.svg#icon') }}"></use></svg> GitHub (rust-gamedev)</a></li>{% endif %}
5+
{% if social.twitter %}<li><a href="https://twitter.com/{{ social.twitter | urlencode }}" title="{{ social.twitter }}"><svg class="svg-icon"><use xlink:href="{{ get_url(path='social/twitter.svg#icon') }}"></use></svg> Twitter (rust_gamedev)</a></li>{% endif %}
6+
{% if social.discord %}<li><a href="https://discord.gg/{{ social.discord | urlencode }}" title="Discord"><svg class="svg-icon"><use xlink:href="{{ get_url(path='social/discord.svg#icon') }}"></use></svg> Discord (#wg-gamedev)</a></li>{% endif %}
7+
{% if social.rss %}<li><a href="{{ get_url(path='rss.xml') }}" title="{{ social.rss }}"><svg class="svg-icon"><use xlink:href="{{ get_url(path='social/rss.svg#icon') }}"></use></svg> RSS feed</a></li>{% endif %}
198
</ul>

0 commit comments

Comments
 (0)
Please sign in to comment.