Fix X share button icon and color, close #5221

This commit is contained in:
iBug
2025-05-02 15:18:03 +08:00
committed by Steffen Illium
parent c7c124ff72
commit b1f903bde9
3 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<h4 class="page__share-title">{{ site.data.ui-text[site.locale].share_on_label | default: "Share on" }}</h4>
<a href="https://x.com/intent/tweet?{% if site.twitter.username %}via={{ site.twitter.username | url_encode }}&{% endif %}text={{ page.title | url_encode }}%20{{ page.url | absolute_url | url_encode }}" class="btn btn--x" aria-label="Share on X" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} X">
<i class="fas fa-fw fa-share-alt" aria-hidden="true"></i><span> X</span>
<i class="fab fa-fw fa-x-twitter" aria-hidden="true"></i><span> X</span>
</a>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ page.url | absolute_url | url_encode }}" class="btn btn--facebook" aria-label="Share on Facebook" onclick="window.open(this.href, 'window', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" title="{{ site.data.ui-text[site.locale].share_on_label | default: 'Share on' }} Facebook">