From ab7803a88573c45961c411d11149b457806731ad Mon Sep 17 00:00:00 2001 From: Ben Pham Date: Sat, 3 Aug 2024 12:22:24 +0100 Subject: [PATCH] Rename twitter to X --- README.md | 2 +- _authors/mranderson.md | 2 +- _config.yml | 2 +- _includes/author.html | 10 ++++----- _includes/footer.html | 10 ++++----- _includes/head.html | 22 +++++++++---------- _includes/share.html | 6 ++--- _includes/svg-icons.html | 2 +- _layouts/author.html | 4 ++-- _layouts/home.html | 4 ++-- _layouts/post.html | 4 ++-- _sass/_share.scss | 4 ++-- admin/config.yml | 12 +++++----- assets/js/widgets/color/react-color.min.js | 2 +- docs/settings.md | 6 ++--- docs/setup.md | 2 +- .../preview/widgets/color/react-color.min.js | 2 +- src/yml/social.yml | 2 +- 18 files changed, 49 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 808203aa1f..25eb37787c 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ menu: # Remove the item if you don't need it github_username: github_username facebook_username: facebook_username -twitter_username: twitter_username +x_username: x_username instagram_username: instagram_username linkedin_username: linkedin_username medium_username: medium_username diff --git a/_authors/mranderson.md b/_authors/mranderson.md index afdfac9869..816a6b3a8f 100644 --- a/_authors/mranderson.md +++ b/_authors/mranderson.md @@ -7,7 +7,7 @@ position: The One bio: Bulletproof hacker passionate about leather clothes. github_username: github_username facebook_username: facebook_username -twitter_username: twitter_username +x_username: x_username instagram_username: instagram_username linkedin_username: linkedin_username medium_username: medium_username diff --git a/_config.yml b/_config.yml index f879cec9fa..399a15a68f 100644 --- a/_config.yml +++ b/_config.yml @@ -31,7 +31,7 @@ formspree_form_id: formspree_form_id # Remove the item if you don't need it github_username: github_username facebook_username: facebook_username -twitter_username: twitter_username +x_username: x_username instagram_username: instagram_username linkedin_username: linkedin_username medium_username: medium_username diff --git a/_includes/author.html b/_includes/author.html index 1681557caa..7b779d9071 100644 --- a/_includes/author.html +++ b/_includes/author.html @@ -23,9 +23,9 @@

{% endif %} - {% if author.twitter_username %} - - + {% if author.x_username %} + + {% endif %} {% if author.medium_username %} @@ -54,8 +54,8 @@

{% if author.facebook_username %} {% assign author_urls = author_urls | append: '"https://www.facebook.com/' | append: author.facebook_username | append: '",' %} {% endif %} - {% if author.twitter_username %} - {% assign author_urls = author_urls | append: '"https://twitter.com/' | append: author.twitter_username | append: '",' %} + {% if author.x_username %} + {% assign author_urls = author_urls | append: '"https://x.com/' | append: author.x_username | append: '",' %} {% endif %} {% if author.medium_username %} {% assign author_urls = author_urls | append: '"https://medium.com/@' | append: author.medium_username | append: '",' %} diff --git a/_includes/footer.html b/_includes/footer.html index ef8d2b8dd3..af102be93a 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -10,9 +10,9 @@ {% endif %} - {% if site.twitter_username %} - - + {% if site.x_username %} + + {% endif %} {% if site.medium_username %} @@ -46,8 +46,8 @@ {% if site.facebook_username %} {% assign social_urls = social_urls | append: '"https://www.facebook.com/' | append: site.facebook_username | append: '",' %} {% endif %} -{% if site.twitter_username %} - {% assign social_urls = social_urls | append: '"https://twitter.com/' | append: site.twitter_username | append: '",' %} +{% if site.x_username %} + {% assign social_urls = social_urls | append: '"https://x.com/' | append: site.x_username | append: '",' %} {% endif %} {% if site.medium_username %} {% assign social_urls = social_urls | append: '"https://medium.com/@' | append: site.medium_username | append: '",' %} diff --git a/_includes/head.html b/_includes/head.html index 6b4c615ee8..4b0eaa5093 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -39,19 +39,19 @@ {% endif %} - - - - + + + + {% if image contains '://' %} - + {% else %} - + {% endif %} - - {% if site.twitter_username %} - + + {% if site.x_username %} + {% endif %} @@ -63,7 +63,7 @@ - + @@ -82,7 +82,7 @@ - + diff --git a/_includes/share.html b/_includes/share.html index f83e9c9a1d..bd9f6c8c60 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -1,8 +1,8 @@