Skip to content

Commit

Permalink
upload x logo,it X formerly Twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
mylestong committed Jan 1, 2024
1 parent f6792da commit 9c78103
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ googleAnalytics = "" # DEPRECATED! Use .Services.googleAnalytics.ID
# Enable parts of social widget
facebook = "username"
twitter = "username"
x = "username" #X (Formerly Twitter)
instagram = "username"
linkedin = "username"
telegram = "username"
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/svg/x-twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions layouts/partials/widgets/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ <h4 class="widget-social__title widget__title">{{ T "social_title" }}</h4>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.x }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="X" rel="noopener noreferrer" href="https://twitter.com/{{ . }}" target="_blank">
{{ partial "svg/x-twitter.svg" (dict "class" "widget-social__link-icon") }}
<span>X</span>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.instagram }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Instagram" rel="noopener noreferrer" href="https://www.instagram.com/{{ . }}" target="_blank">
Expand Down

0 comments on commit 9c78103

Please sign in to comment.