Skip to content

Commit

Permalink
add github to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
robhowley committed Aug 13, 2024
1 parent 5e997e6 commit 1bddb0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ footer_links:
- title: Facebook
url: https://www.facebook.com/profile.php?id=61560900343761
icon: fab fa-facebook
- title: Github
url: https://github.com/robhowley/betterby-bike
icon: fab fa-github
12 changes: 4 additions & 8 deletions _pages/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ Bike SOMa NJ at either of the following.

<div style="display: flex; justify-content: center;">
<div class="social-icons">
{%- for footer_link in site.footer_links -%}
{%- if footer_link.url contains "://" -%}
{%- assign url = footer_link.url -%}
{%- else -%}
{%- assign url = footer_link.url | relative_url -%}
{%- endif -%}
<a class="social-icon" href="{{ url }}" style="padding: 4px;">
<i class="{{ footer_link.icon }} fa-4x" title="{{ footer_link.title }}"></i>
{%- for author_link in site.author.links -%}
{%- assign url = author_link.url -%}
<a class="social-icon" href="{{ url }}" style="padding: 0 0.25em; text-decoration:none;">
<i class="{{ author_link.icon }} fa-4x" title="{{ author_link.title }}"></i>
</a>
{%- endfor -%}
</div>
Expand Down

0 comments on commit 1bddb0a

Please sign in to comment.