Update to Font Awesome 5 (#587)

This commit is contained in:
cketti 2020-03-16 19:36:28 +01:00 committed by GitHub
parent f2ef9f238d
commit 67ced3d068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 26 deletions

View File

@ -4,88 +4,89 @@
# name: Specify a user-friendly name that will be used as a link title # name: Specify a user-friendly name that will be used as a link title
# urlTemplate: Define a URL template. The variable {value} will be replaced # urlTemplate: Define a URL template. The variable {value} will be replaced
# with the value of site.social-network-links.<key> # with the value of site.social-network-links.<key>
# icon: Specify a valid fontawesome icon class # icon: Specify valid fontawesome icon classes (style + icon),
# e.g. "fab fa-github" or "fas fa-rss"
facebook: facebook:
name: "Facebook" name: "Facebook"
urlTemplate: "https://www.facebook.com/{value}" urlTemplate: "https://www.facebook.com/{value}"
icon: "fa-facebook" icon: "fab fa-facebook"
github: github:
name: "GitHub" name: "GitHub"
urlTemplate: "https://github.com/{value}" urlTemplate: "https://github.com/{value}"
icon: "fa-github" icon: "fab fa-github"
twitter: twitter:
name: "Twitter" name: "Twitter"
urlTemplate: "https://twitter.com/{value}" urlTemplate: "https://twitter.com/{value}"
icon: "fa-twitter" icon: "fab fa-twitter"
reddit: reddit:
name: "Reddit" name: "Reddit"
urlTemplate: "https://reddit.com/u/{value}" urlTemplate: "https://reddit.com/u/{value}"
icon: "fa-reddit" icon: "fab fa-reddit"
email: email:
name: "Email me" name: "Email me"
urlTemplate: "mailto:{value}" urlTemplate: "mailto:{value}"
icon: "fa-envelope" icon: "fas fa-envelope"
linkedin: linkedin:
name: "LinkedIn" name: "LinkedIn"
urlTemplate: "https://linkedin.com/in/{value}" urlTemplate: "https://linkedin.com/in/{value}"
icon: "fa-linkedin" icon: "fab fa-linkedin"
xing: xing:
name: "Xing" name: "Xing"
urlTemplate: "https://www.xing.com/profile/{value}" urlTemplate: "https://www.xing.com/profile/{value}"
icon: "fa-xing" icon: "fab fa-xing"
stackoverflow: stackoverflow:
name: "StackOverflow" name: "StackOverflow"
urlTemplate: "https://stackoverflow.com/users/{value}" urlTemplate: "https://stackoverflow.com/users/{value}"
icon: "fa-stack-overflow" icon: "fab fa-stack-overflow"
snapchat: snapchat:
name: "Snapchat" name: "Snapchat"
urlTemplate: "https://www.snapchat.com/add/{value}" urlTemplate: "https://www.snapchat.com/add/{value}"
icon: "fa-snapchat-ghost" icon: "fab fa-snapchat-ghost"
instagram: instagram:
name: "Instagram" name: "Instagram"
urlTemplate: "https://www.instagram.com/{value}" urlTemplate: "https://www.instagram.com/{value}"
icon: "fa-instagram" icon: "fab fa-instagram"
youtube: youtube:
name: "YouTube" name: "YouTube"
urlTemplate: "https://www.youtube.com/{value}" urlTemplate: "https://www.youtube.com/{value}"
icon: "fa-youtube" icon: "fab fa-youtube"
spotify: spotify:
name: "Spotify" name: "Spotify"
urlTemplate: "https://open.spotify.com/user/{value}" urlTemplate: "https://open.spotify.com/user/{value}"
icon: "fa-spotify" icon: "fab fa-spotify"
telephone: telephone:
name: "Phone" name: "Phone"
urlTemplate: "tel:{value}" urlTemplate: "tel:{value}"
icon: "fa-phone" icon: "fas fa-phone"
rss: rss:
name: "RSS" name: "RSS"
icon: "fa-rss" icon: "fas fa-rss"
steam: steam:
name: "Steam" name: "Steam"
urlTemplate: "https://steamcommunity.com/id/{value}" urlTemplate: "https://steamcommunity.com/id/{value}"
icon: "fa-steam" icon: "fab fa-steam"
twitch: twitch:
name: "Twitch" name: "Twitch"
urlTemplate: "https://www.twitch.tv/{value}" urlTemplate: "https://www.twitch.tv/{value}"
icon: "fa-twitch" icon: "fab fa-twitch"
yelp: yelp:
name: "Yelp" name: "Yelp"
urlTemplate: "https://{value}.yelp.com" urlTemplate: "https://{value}.yelp.com"
icon: "fa-yelp" icon: "fab fa-yelp"

View File

@ -16,8 +16,8 @@
<li> <li>
<a href="{{ url }}" title="{{ element.name }}"> <a href="{{ url }}" title="{{ element.name }}">
<span class="fa-stack fa-lg" aria-hidden="true"> <span class="fa-stack fa-lg" aria-hidden="true">
<i class="fa fa-circle fa-stack-2x"></i> <i class="fas fa-circle fa-stack-2x"></i>
<i class="fa {{ element.icon }} fa-stack-1x fa-inverse"></i> <i class="{{ element.icon }} fa-stack-1x fa-inverse"></i>
</span> </span>
<span class="sr-only">{{ element.name }}</span> <span class="sr-only">{{ element.name }}</span>
</a> </a>

View File

@ -14,7 +14,7 @@
<!--- Share on Twitter --> <!--- Share on Twitter -->
<a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}" <a href="https://twitter.com/intent/tweet?text={{ page.title | url_encode }}&url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-twitter" title="Share on Twitter"> class="btn btn-social-icon btn-twitter" title="Share on Twitter">
<span class="fa fa-fw fa-twitter" aria-hidden="true"></span> <span class="fab fa-fw fa-twitter" aria-hidden="true"></span>
<span class="sr-only">Twitter</span> <span class="sr-only">Twitter</span>
</a> </a>
{% endif %} {% endif %}
@ -23,7 +23,7 @@
<!--- Share on Facebook --> <!--- Share on Facebook -->
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" <a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-facebook" title="Share on Facebook"> class="btn btn-social-icon btn-facebook" title="Share on Facebook">
<span class="fa fa-fw fa-facebook" aria-hidden="true"></span> <span class="fab fa-fw fa-facebook" aria-hidden="true"></span>
<span class="sr-only">Facebook</span> <span class="sr-only">Facebook</span>
</a> </a>
{% endif %} {% endif %}
@ -32,7 +32,7 @@
<!--- Share on LinkedIn --> <!--- Share on LinkedIn -->
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}" <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ page.url | absolute_url | url_encode }}"
class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn"> class="btn btn-social-icon btn-linkedin" title="Share on LinkedIn">
<span class="fa fa-fw fa-linkedin" aria-hidden="true"></span> <span class="fab fa-fw fa-linkedin" aria-hidden="true"></span>
<span class="sr-only">LinkedIn</span> <span class="sr-only">LinkedIn</span>
</a> </a>
{% endif %} {% endif %}

View File

@ -4,7 +4,7 @@ common-css:
- "/css/bootstrap-social.css" - "/css/bootstrap-social.css"
- "/css/main.css" - "/css/main.css"
common-ext-css: common-ext-css:
- "//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css" - "//cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css"
common-googlefonts: common-googlefonts:
- "Lora:400,700,400italic,700italic" - "Lora:400,700,400italic,700italic"
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" - "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"

View File

@ -11,13 +11,13 @@ title: 'Tag Index'
{%- assign tags_list = site_tags | split:',' | sort -%} {%- assign tags_list = site_tags | split:',' | sort -%}
{%- for tag in tags_list -%} {%- for tag in tags_list -%}
<a href="#{{- tag -}}" class="btn btn-primary tag-btn"><i class="fa fa-tag" aria-hidden="true"></i>&nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}})</a> <a href="#{{- tag -}}" class="btn btn-primary tag-btn"><i class="fas fa-tag" aria-hidden="true"></i>&nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}})</a>
{%- endfor -%} {%- endfor -%}
<div id="full-tags-list"> <div id="full-tags-list">
{%- for tag in tags_list -%} {%- for tag in tags_list -%}
<h2 id="{{- tag -}}" class="linked-section"> <h2 id="{{- tag -}}" class="linked-section">
<i class="fa fa-tag" aria-hidden="true"></i> <i class="fas fa-tag" aria-hidden="true"></i>
&nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}}) &nbsp;{{- tag -}}&nbsp;({{site.tags[tag].size}})
</h2> </h2>
<div class="post-list"> <div class="post-list">