_layouts/links.html in jekyll-theme-linky-0.1.9 vs _layouts/links.html in jekyll-theme-linky-0.2.0
- old
+ new
@@ -67,9 +67,27 @@
<a href="https://{{ parts[1] }}/@{{ parts[0] }}"
>{% include mastodon-logo.svg %}</a>
</li>
{%- endif -%}
+ {%- if site.bluesky_username -%}
+ {% comment %}
+ Be forgiving -- allow bare handle (and add bsky.social) or use as-is if there's a dot
+ {% endcomment %}
+
+ {% assign parts = site.bluesky_username | split: "." %}
+
+ {% if parts.size == 1 %}
+ {% assign handle = site.bluesky_username | append: ".bsky.social" %}
+ {% else %}
+ {% assign handle = site.bluesky_username %}
+ {% endif %}
+ <li class="social-link">
+ <a href="https://bsky.app/profile/{{ handle }}"
+ >{% include bluesky-logo.svg %}</a>
+ </li>
+ {%- endif -%}
+
{%- if site.cashapp_username -%}
<li class="social-link">
<a href="https://cash.app/${{ site.cashapp_username }}"
>{% include cashapp-logo.svg %}</a>
</li>