diff --git a/README.md b/README.md index 70fcd739..d925e4da 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/layouts/partials/svg/twitter.svg b/layouts/partials/svg/twitter.svg deleted file mode 100644 index a78e0735..00000000 --- a/layouts/partials/svg/twitter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/svg/x.svg b/layouts/partials/svg/x.svg new file mode 100644 index 00000000..24f877e6 --- /dev/null +++ b/layouts/partials/svg/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/widgets/social.html b/layouts/partials/widgets/social.html index 8ba07161..5685599d 100644 --- a/layouts/partials/widgets/social.html +++ b/layouts/partials/widgets/social.html @@ -10,11 +10,11 @@

{{ T "social_title" }}

{{- end }} - {{- with .Site.Params.widgets.social.twitter }} + {{- with or .Site.Params.widgets.social.x .Site.Params.widgets.social.twitter }}
- - {{ partial "svg/twitter.svg" (dict "class" "widget-social__link-icon") }} - Twitter + + {{ partial "svg/x.svg" (dict "class" "widget-social__link-icon") }} + X
{{- end }}