remove socialnetworks data file, in preparation for remote_theme that doesn't support data folders; fixes #614

This commit is contained in:
Dean Attali 2020-04-24 01:54:35 +00:00
parent ed5bf8d8f1
commit 3455e3073b
4 changed files with 217 additions and 123 deletions

View File

@ -45,15 +45,15 @@ round-avatar: true
# --- Footer options --- # # --- Footer options --- #
# Select your active Social Network links. # Select the social network links that you want to show in the footer.
# Uncomment the links you want to show in the footer and add your information to each link. # Uncomment the links you want to show and add your information to each one.
# You can reorder the items to define the link order. # If you don't want to show a link to an RSS feed, set rss to "false".
social-network-links: social-network-links:
rss: true
email: "someone@example.com" email: "someone@example.com"
facebook: deanattali facebook: deanattali
github: daattali github: daattali
twitter: daattali twitter: daattali
rss: true
# reddit: yourname # reddit: yourname
# linkedin: daattali # linkedin: daattali
# xing: yourname # xing: yourname

View File

@ -1,92 +0,0 @@
# You can define your custom social network links here.
# Use the same key you added in _config.yml -> social-network-links.
# In addition to that you need to specify the following properties:
# 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
# with the value of site.social-network-links.<key>
# icon: Specify valid fontawesome icon classes (style + icon),
# e.g. "fab fa-github" or "fas fa-rss"
facebook:
name: "Facebook"
urlTemplate: "https://www.facebook.com/{value}"
icon: "fab fa-facebook"
github:
name: "GitHub"
urlTemplate: "https://github.com/{value}"
icon: "fab fa-github"
twitter:
name: "Twitter"
urlTemplate: "https://twitter.com/{value}"
icon: "fab fa-twitter"
reddit:
name: "Reddit"
urlTemplate: "https://reddit.com/u/{value}"
icon: "fab fa-reddit"
email:
name: "Email me"
urlTemplate: "mailto:{value}"
icon: "fas fa-envelope"
linkedin:
name: "LinkedIn"
urlTemplate: "https://linkedin.com/in/{value}"
icon: "fab fa-linkedin"
xing:
name: "Xing"
urlTemplate: "https://www.xing.com/profile/{value}"
icon: "fab fa-xing"
stackoverflow:
name: "StackOverflow"
urlTemplate: "https://stackoverflow.com/users/{value}"
icon: "fab fa-stack-overflow"
snapchat:
name: "Snapchat"
urlTemplate: "https://www.snapchat.com/add/{value}"
icon: "fab fa-snapchat-ghost"
instagram:
name: "Instagram"
urlTemplate: "https://www.instagram.com/{value}"
icon: "fab fa-instagram"
youtube:
name: "YouTube"
urlTemplate: "https://www.youtube.com/{value}"
icon: "fab fa-youtube"
spotify:
name: "Spotify"
urlTemplate: "https://open.spotify.com/user/{value}"
icon: "fab fa-spotify"
telephone:
name: "Phone"
urlTemplate: "tel:{value}"
icon: "fas fa-phone"
rss:
name: "RSS"
icon: "fas fa-rss"
steam:
name: "Steam"
urlTemplate: "https://steamcommunity.com/id/{value}"
icon: "fab fa-steam"
twitch:
name: "Twitch"
urlTemplate: "https://www.twitch.tv/{value}"
icon: "fab fa-twitch"
yelp:
name: "Yelp"
urlTemplate: "https://{value}.yelp.com"
icon: "fab fa-yelp"

View File

@ -2,28 +2,7 @@
<div class="container beautiful-jekyll-footer"> <div class="container beautiful-jekyll-footer">
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center footer-links"> {% include social-networks-links.html %}
{%- for link in site.social-network-links -%}
{%- assign curkey = link[0] -%}
{%- assign element = site.data.SocialNetworks[curkey] -%}
{%- if curkey == 'rss' -%}
{%- capture url -%}{{ '/feed.xml' | relative_url }}{%- endcapture -%}
{%- else -%}
{%- assign value = site.social-network-links[curkey] -%}
{%- assign placeholder = "{value}" -%}
{%- capture url -%}{{ element.urlTemplate | replace: placeholder, value }}{%- endcapture -%}
{%- endif -%}
<li>
<a href="{{ url }}" title="{{ element.name }}">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="{{ element.icon }} fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">{{ element.name }}</span>
</a>
</li>
{%- endfor -%}
</ul>
<p class="copyright text-muted"> <p class="copyright text-muted">
{% if site.author %} {% if site.author %}
{{ site.author }} {{ site.author }}

View File

@ -0,0 +1,207 @@
<ul class="list-inline text-center footer-links">
{%- if site.social-network-links.facebook -%}
<li>
<a href="{{ '/feed.xml' | relative_url }}" title="RSS">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-rss fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">RSS</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.facebook -%}
<li>
<a href="https://www.facebook.com/{{ site.social-network-links.facebook }}" title="Facebook">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-facebook fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Facebook</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.github -%}
<li>
<a href="https://github.com/{{ site.social-network-links.github }}" title="GitHub">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">GitHub</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.twitter -%}
<li>
<a href="https://twitter.com/{{ site.social-network-links.twitter }}" title="Twitter">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Twitter</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.reddit -%}
<li>
<a href="https://reddit.com/u/{{ site.social-network-links.reddit }}" title="Reddit">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-reddit fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Reddit</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.email -%}
<li>
<a href="mailto:{{ site.social-network-links.email }}" title="Email me">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-envelope fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Email me</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.linkedin -%}
<li>
<a href="https://linkedin.com/in/{{ site.social-network-links.linkedin }}" title="LinkedIn">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-linkedin fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">LinkedIn</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.xing -%}
<li>
<a href="https://www.xing.com/profile/{{ site.social-network-links.xing }}" title="Xing">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-xing fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Xing</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.stackoverflow -%}
<li>
<a href="https://stackoverflow.com/users/{{ site.social-network-links.stackoverflow }}" title="StackOverflow">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-stack-overflow fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">StackOverflow</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.snapchat -%}
<li>
<a href="https://www.snapchat.com/add/{{ site.social-network-links.snapchat }}" title="Snapchat">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-snapchat-ghost fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Snapchat</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.instagram -%}
<li>
<a href="https://www.instagram.com/{{ site.social-network-links.instagram }}" title="Instagram">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-instagram fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Instagram</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.youtube -%}
<li>
<a href="https://www.youtube.com/{{ site.social-network-links.youtube }}" title="YouTube">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-youtube fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">YouTube</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.spotify -%}
<li>
<a href="https://open.spotify.com/user/{{ site.social-network-links.spotify }}" title="Spotify">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-spotify fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Spotify</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.telephone -%}
<li>
<a href="tel:{{ site.social-network-links.telephone }}" title="Phone">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-phone fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Phone</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.steam -%}
<li>
<a href="https://steamcommunity.com/id/{{ site.social-network-links.steam }}" title="Steam">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-steam fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Steam</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.twitch -%}
<li>
<a href="https://www.twitch.tv/{{ site.social-network-links.twitch }}" title="Twitch">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-twitch fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Twitch</span>
</a>
</li>
{%- endif -%}
{%- if site.social-network-links.yelp -%}
<li>
<a href="https://{{ site.social-network-links.yelp }}.yelp.com" title="Yelp">
<span class="fa-stack fa-lg" aria-hidden="true">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fab fa-yelp fa-stack-1x fa-inverse"></i>
</span>
<span class="sr-only">Yelp</span>
</a>
</li>
{%- endif -%}
</ul>