From 1fda6ff11fd98f05ea6b665c06820c813f811fbe Mon Sep 17 00:00:00 2001 From: Zach Lasiuk Date: Thu, 11 Jul 2024 10:50:12 -0500 Subject: [PATCH] fix social img routing --- config.toml | 4 ++-- .../layouts/partials/head/social.html | 7 ++++--- .../img/{social-image.png => social-image.jpg} | Bin 3 files changed, 6 insertions(+), 5 deletions(-) rename themes/arm-design-system-hugo-theme/static/img/{social-image.png => social-image.jpg} (100%) diff --git a/config.toml b/config.toml index 4365c1d2..238095ea 100644 --- a/config.toml +++ b/config.toml @@ -27,10 +27,10 @@ assetsDir = "assets" # Repository configuration (URLs for in-page links to opening issues and suggesting changes) github_repo = "https://github.com/ArmDeveloperEcosystem/ecosystem-dashboard-for-arm" - +arm_url = "https://www.arm.com/developer-hub/ecosystem-dashboard/" # For metadata posting on socials title = 'Ecosystem Dashboard for Arm' description = 'Discover what software packages work on Arm servers and how to get started. A great resource for migrating to Arm.' -social_image = '/developer-hub/ecosystem-dashboard/img/social-image.png' +social_image = '/img/social-image.jpg' twitter_handle = '@ArmSoftwareDev' \ No newline at end of file diff --git a/themes/arm-design-system-hugo-theme/layouts/partials/head/social.html b/themes/arm-design-system-hugo-theme/layouts/partials/head/social.html index cf94d067..3dd76a3a 100644 --- a/themes/arm-design-system-hugo-theme/layouts/partials/head/social.html +++ b/themes/arm-design-system-hugo-theme/layouts/partials/head/social.html @@ -7,7 +7,7 @@ - + @@ -21,8 +21,9 @@ - - +{{ $social_image_url := printf "%s%s" .Site.Params.arm_url .Site.Params.social_image }} + + diff --git a/themes/arm-design-system-hugo-theme/static/img/social-image.png b/themes/arm-design-system-hugo-theme/static/img/social-image.jpg similarity index 100% rename from themes/arm-design-system-hugo-theme/static/img/social-image.png rename to themes/arm-design-system-hugo-theme/static/img/social-image.jpg