Skip to content

Commit

Permalink
💄 Style: upgrade the name and icon of "twitter" to "X" in share and s…
Browse files Browse the repository at this point in the history
…ocial part (#443)
  • Loading branch information
Tim-Saijun authored May 23, 2024
1 parent 3c4284e commit 6cc4d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/data/social.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ linkedin:
Icon:
Class: fa-brands fa-linkedin fa-fw

# 003: Twitter
# 003: Twitter (X)
twitter:
Weight: 3
Prefix: https://twitter.com/
Title: Twitter
Title: X
Icon:
Class: fa-brands fa-twitter fa-fw
Class: fa-brands fa-x-twitter fa-fw

# 004: Instagram
instagram:
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/plugin/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{{- $title := title .Title -}}
{{- /* 001: Twitter */ -}}
{{- if $share.Twitter -}}
<a href="javascript:void(0);" title="{{ T `shareOn` }} Twitter" data-sharer="twitter" data-url="{{ .Permalink }}" data-title="{{ $title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}>
{{- dict "Class" "fa-brands fa-twitter fa-fw" | partial "plugin/icon.html" -}}
<a href="javascript:void(0);" title="{{ T `shareOn` }} X" data-sharer="twitter" data-url="{{ .Permalink }}" data-title="{{ $title }}"{{ with .Site.Params.Social.Twitter }} data-via="{{ . }}"{{ end }}{{ with .Params.tags }} data-hashtags="{{ delimit . `,` }}"{{ end }}>
{{- dict "Class" "fa-brands fa-x-twitter fa-fw" | partial "plugin/icon.html" -}}
</a>
{{ end -}}

Expand Down

0 comments on commit 6cc4d44

Please sign in to comment.