Skip to content

Commit

Permalink
Merge pull request #311 from zachlasiuk/seo
Browse files Browse the repository at this point in the history
fixed social img routing
  • Loading branch information
zachlasiuk authored Jul 11, 2024
2 parents 3fe322a + 545badd commit f645eee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


<!-- Basics -->
<meta property="og:url" content="https://www.arm.com/developer-hub/ecosystem-dashboard/">
<meta property="og:url" content="{{ .Site.Params.arm_url }}">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">

Expand All @@ -21,8 +21,9 @@
<meta name="description" content="{{.Site.Params.description}}">

<!-- Image (2x1 aspect ratio, less than 5Mb) -->
<meta name="twitter:image" content="{{ .Site.Params.social_image | absURL }}">
<meta property="og:image" content="{{ .Site.Params.social_image | absURL }}">
{{ $social_image_url := printf "%s%s" .Site.Params.arm_url .Site.Params.social_image }}
<meta name="twitter:image" content="{{ $social_image_url }}">
<meta property="og:image" content="{{ $social_image_url }}">
<meta property="og:image:type" content="image/jpg">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
Expand Down

0 comments on commit f645eee

Please sign in to comment.