Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ googleAnalytics = "" # DEPRECATED! Use .Services.googleAnalytics.ID
cached = false # activate cache if true
# Enable parts of social widget
facebook = "username"
twitter = "username"
x = "username"
# twitter = "username" supported for backwards compatibility, precedence given to x = "username" if both used
instagram = "username"
linkedin = "username"
telegram = "username"
Expand Down
1 change: 0 additions & 1 deletion layouts/partials/svg/twitter.svg

This file was deleted.

1 change: 1 addition & 0 deletions layouts/partials/svg/x.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: 4 additions & 4 deletions layouts/partials/widgets/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ <h4 class="widget-social__title widget__title">{{ T "social_title" }}</h4>
</a>
</div>
{{- end }}
{{- with .Site.Params.widgets.social.twitter }}
{{- with or .Site.Params.widgets.social.x .Site.Params.widgets.social.twitter }}
<div class="widget-social__item widget__item">
<a class="widget-social__link widget__link btn" title="Twitter" rel="noopener noreferrer" href="https://twitter.com/{{ . }}" target="_blank">
{{ partial "svg/twitter.svg" (dict "class" "widget-social__link-icon") }}
<span>Twitter</span>
<a class="widget-social__link widget__link btn" title="X" rel="noopener noreferrer" href="https://x.com/{{ . }}" target="_blank">
{{ partial "svg/x.svg" (dict "class" "widget-social__link-icon") }}
<span>X</span>
</a>
</div>
{{- end }}
Expand Down