Skip to content

Commit

Permalink
Update social links in configuration and refactor footer layout for i…
Browse files Browse the repository at this point in the history
…mproved user experience

- Modified _config.yml to enhance social links structure, adding titles for GitHub and X (formerly Twitter).
- Refactored footer.html to utilize a more modular approach for social links, improving maintainability and visual consistency.
- Updated footer to display author information and personal website link, enhancing overall site branding.
  • Loading branch information
jonesrussell committed Jan 11, 2025
1 parent b782df0 commit a0731de
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 44 deletions.
8 changes: 6 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ remote_theme: JakeSteam/[email protected]
minima:
skin: auto
social_links:
- { platform: github, user_url: "https://github.com/jonesrussell" }
- platform: github
user_url: "https://github.com/jonesrussell"
title: "GitHub"
- platform: x
user_url: "https://x.com/jonesrussell42"
title: "X (formerly Twitter)"
- { platform: linkedin, user_url: "https://www.linkedin.com/in/jonesrussell42" }
- { platform: stackoverflow, user_url: "https://stackoverflow.com/users/437654/russell" }
- { platform: x, user_url: "https://www.x.com/jonesrussell" }
- { platform: email, user_url: "mailto:[email protected]", user_title: "[email protected]" }
- { platform: code, user_url: "https://github.com/jonesrussell/blog", user_title: "JakeSteam/blog-programming" }
- { platform: rss, user_url: "/feed.xml", user_title: "RSS Feed" }
Expand Down
65 changes: 23 additions & 42 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,31 @@
<footer class="site-footer">
{%- assign social = site.minima.social_links -%}
<footer class="site-footer h-card">
<div class="wrapper">
<div class="footer-col-wrapper">
<div class="footer-col">
<h2 class="footer-heading">{{ site.title | escape }}</h2>
<p class="site-description">{{ site.description | escape }}</p>
</div>

<div class="footer-col">
<p class="feed-subscribe">
<a href="{{ site.feed.path | default: 'feed.xml' | relative_url }}">
<svg class="svg-icon orange">
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg><span>Subscribe</span>
</a>
</p>
{%- if site.author %}
<ul class="contact-list">
<li>
<a href="{{ site.personal_website }}" target="_blank" rel="noopener">
<svg class="svg-icon" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>
</svg>
<span>Personal Website</span>
</a>
</li>
{% if site.github_username %}
<li>
<a href="https://github.com/{{ site.github_username }}" target="_blank" rel="noopener">
<svg class="svg-icon">
<use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use>
</svg>
<span class="username">{{ site.github_username }}</span>
</a>
</li>
{% endif %}
{% if site.twitter_username %}
<li>
<a href="https://x.com/{{ site.twitter_username }}" target="_blank" rel="noopener">
<svg class="svg-icon">
<use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use>
</svg>
<span class="username">@{{ site.twitter_username }}</span>
</a>
</li>
{% endif %}
<li>
<a href="mailto:{{ site.email }}">
<svg class="svg-icon">
<use xlink:href="{{ '/assets/minima-social-icons.svg#email' | relative_url }}"></use>
</svg>
<span>{{ site.email }}</span>
</a>
</li>
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
{%- endif %}
<li><a href="https://jonesrussell.github.io/me/">Personal Website</a></li>
</ul>
{%- endif %}
</div>
<div class="footer-col">
<div class="social-links">
{%- include social.html -%}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit a0731de

Please sign in to comment.