From 32ba073a7804ff9f95240d0a5d3662b10dd817e1 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Thu, 18 Jan 2024 14:03:50 -0600 Subject: [PATCH] Fix a bit of the social stuff. --- cigaradvisor/blocks/article-list/article-list.js | 3 +++ cigaradvisor/blocks/author-detail/author-detail.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 cigaradvisor/blocks/article-list/article-list.js diff --git a/cigaradvisor/blocks/article-list/article-list.js b/cigaradvisor/blocks/article-list/article-list.js new file mode 100644 index 00000000..c59bd198 --- /dev/null +++ b/cigaradvisor/blocks/article-list/article-list.js @@ -0,0 +1,3 @@ +export default async function decorate(block) { + block.innerHTML = ''; +} diff --git a/cigaradvisor/blocks/author-detail/author-detail.js b/cigaradvisor/blocks/author-detail/author-detail.js index c56233b7..5a3406fa 100644 --- a/cigaradvisor/blocks/author-detail/author-detail.js +++ b/cigaradvisor/blocks/author-detail/author-detail.js @@ -15,7 +15,9 @@ export default async function decorate(block) { let icon; switch (textToClass) { case 'twitter': - icon = 'twitter'; + case 'x': + case 'x-twitter': + icon = 'x-twitter'; break; case 'facebook': icon = 'facebook-f';