Skip to content

Commit

Permalink
Merge pull request #183 from GSA-TTS/159-og-image-updates
Browse files Browse the repository at this point in the history
159 - Additional og:image for news, investments, and the repository
  • Loading branch information
jonadecker authored Jun 25, 2024
2 parents 35c3d65 + 536f79a commit cb08753
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 63 deletions.
64 changes: 3 additions & 61 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"check_circle.svg": "/assets/assets/check_circle-FKYRF36F.svg",
"checkbox-indeterminate.svg": "/assets/assets/checkbox-indeterminate-HJACJSU3.svg",
"checkbox-indeterminate-alt.svg": "/assets/assets/checkbox-indeterminate-alt-SXGAHOOI.svg",
"close.svg": "/assets/images/close-x.svg",
"close.svg": "/assets/assets/close-D6X4FKTZ.svg",
"correct8.svg": "/assets/assets/correct8-BW6WT7U2.svg",
"correct8-alt.svg": "/assets/assets/correct8-alt-M4H3GT6Q.svg",
"delna.webp": "/assets/assets/delna-Y7FFIQ4T.webp",
Expand All @@ -37,7 +37,7 @@
"frank.webp": "/assets/assets/frank-WEGTXKFN.webp",
"header-bottom-border.webp": "/assets/assets/header-bottom-border-K2INIIYM.webp",
"hero.jpg": "/assets/assets/hero-OXUBFI7L.jpg",
"homepage-gradient-bg.jpg": "/assets/images/homepage-gradient-bg-mobile.jpg",
"homepage-gradient-bg.jpg": "/assets/assets/homepage-gradient-bg-L552LDA4.jpg",
"homepage-gradient-bg-mobile.jpg": "/assets/assets/homepage-gradient-bg-mobile-7NX7I3DV.jpg",
"impact-report_pdf-icon.webp": "/assets/assets/impact-report_pdf-icon-ARH2FAXH.webp",
"info.svg": "/assets/assets/info-TBKQSD4V.svg",
Expand Down Expand Up @@ -83,66 +83,8 @@
"tts-inclusive-grid-map.svg": "/assets/assets/tts-inclusive-grid-map-D5DPHQNA.svg",
"unfold_more.svg": "/assets/assets/unfold_more-WL443JWS.svg",
"warning.svg": "/assets/assets/warning-5OR6W6GJ.svg",
"merriweathe": "/assets/fonts/merriweather",
"poppin": "/assets/fonts/poppins",
"public": "/assets/fonts/public-sans",
"roboto": "/assets/fonts/roboto-mono",
"source-sans": "/assets/fonts/source-sans-pro",
"10x.png": "/assets/images/10x-logo.png",
"10x.webp": "/assets/images/10x-logo.webp",
"10x_og_imag.png": "/assets/images/10x_og_image.png",
"access-to-data.png": "/assets/images/access-to-data-icon.png",
"access-to-data.webp": "/assets/images/access-to-data-icon.webp",
"benefits-eligibility.png": "/assets/images/benefits-eligibility-icon.png",
"benefits-eligibility.webp": "/assets/images/benefits-eligibility-icon.webp",
"cloud_go.png": "/assets/images/cloud_gov.png",
"current-report-icon.png": "/assets/images/current-report-icon-solid.png",
"current-report-icon.svg": "/assets/images/current-report-icon-floated.svg",
"current-report.svg": "/assets/images/current-report-icon.svg",
"customer-experience.png": "/assets/images/customer-experience-icon.png",
"customer-experience.webp": "/assets/images/customer-experience-icon.webp",
"digitalgov.png": "/assets/images/digitalgov-logo.png",
"equity-project.png": "/assets/images/equity-project-icon.png",
"equity-project.webp": "/assets/images/equity-project-icon.webp",
"external-link.svg": "/assets/images/external-link-icon.svg",
"gradient.png": "/assets/images/gradient-bg.png",
"gradient_her.png": "/assets/images/gradient_hero.png",
"gsa.svg": "/assets/images/gsa-logo.svg",
"header-bottom.png": "/assets/images/header-bottom-border.png",
"header-bottom.webp": "/assets/images/header-bottom-border.webp",
"homepage-gradient.jpg": "/assets/images/homepage-gradient-bg.jpg",
"homepage-gradient.png": "/assets/images/homepage-gradient-bg.png",
"impact": "/assets/images/impact-reports",
"left.svg": "/assets/images/left-arrow.svg",
"logo.png": "/assets/images/logo-alt.png",
"logo.svg": "/assets/images/logo-alt.svg",
"log.svg": "/assets/images/logo.svg",
"menu-close.png": "/assets/images/menu-close-X.png",
"menu-close.webp": "/assets/images/menu-close-X.webp",
"menu.svg": "/assets/images/menu-icon.svg",
"optimal-digital-experience.png": "/assets/images/optimal-digital-experience-icon.png",
"optimal-digital-experience.webp": "/assets/images/optimal-digital-experience-icon.webp",
"placeholder.png": "/assets/images/placeholder-icon.png",
"placeholder.svg": "/assets/images/placeholder-icon.svg",
"public-service.png": "/assets/images/public-service-icon.png",
"public-service.webp": "/assets/images/public-service-icon.webp",
"purple.svg": "/assets/images/purple-US.svg",
"science-medicine.png": "/assets/images/science-medicine-icon.png",
"science-medicine.webp": "/assets/images/science-medicine-icon.webp",
"section2-purple.png": "/assets/images/section2-purple-bg.png",
"section2-purple.svg": "/assets/images/section2-purple-bg.svg",
"section2-purple.webp": "/assets/images/section2-purple-bg.webp",
"security-project.png": "/assets/images/security-project-icon.png",
"security-project.webp": "/assets/images/security-project-icon.webp",
"sewer": "/assets/images/sewer-spills",
"sprit.svg": "/assets/images/sprite.svg",
"technology.svg": "/assets/images/technology-services.svg",
"tts-inclusive-grid.png": "/assets/images/tts-inclusive-grid-map.png",
"tts-inclusive-grid.svg": "/assets/images/tts-inclusive-grid-map.svg",
"uswd": "/assets/images/uswds",
"app.js": "/assets/js/app-EDZES2YK.js",
"app.map": "/assets/js/app-EDZES2YK.js.map",
"index.css": "/assets/styles/index-RAJAX37S.css",
"index.map": "/assets/styles/index-RAJAX37S.css.map",
"j": "/assets/uswds/js"
"index.map": "/assets/styles/index-RAJAX37S.css.map"
}
4 changes: 2 additions & 2 deletions _includes/components/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<meta content="article" property="og:type">
<meta content="summary_large_image" name="twitter:card">
<meta content="{{ '/10x_og_image.png' | url }}" property="og:image">
<meta content="{{ '/10x_og_image.png' | url }}" name="twitter:image">
<meta content="{{ og_image | default: 'https://10x.gsa.gov/assets/images/10x_og_image.png'}}" property="og:image">
<meta content="{{ og_image | default: 'https://10x.gsa.gov/assets/images/10x_og_image.png'}}" name="twitter:image">
<meta content="10x is the federal government's very own venture studio" property="og:image:alt">

<meta content="IE=edge" http-equiv="X-UA-Compatible">
Expand Down
1 change: 1 addition & 0 deletions _includes/layouts/investment-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
return-to-top_text: "Return to top"
all-investments: "Investments"
list-url: /investments/
og_image: "https://10x.gsa.gov/assets/images/10x_og_image_investment.png"
home-link-text: "Home"
hero_banner:
category: "Investment Portfolios"
Expand Down
1 change: 1 addition & 0 deletions _includes/layouts/investments-list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: layouts/base.html
section: investments
og_image: "https://10x.gsa.gov/assets/images/10x_og_image_investment.png"
pagination:
data: collections.investments
size: 7
Expand Down
1 change: 1 addition & 0 deletions _includes/layouts/news-landing.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: layouts/base.html
og_image: "https://10x.gsa.gov/assets/images/10x_og_image_news.png"
section: blog
---
<div class="portfolio-bloglist-wrapper portfolio-blog-pages">
Expand Down
1 change: 1 addition & 0 deletions _includes/layouts/news-updates.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: layouts/news-landing.html
og_image: "https://10x.gsa.gov/assets/images/10x_og_image_news.png"
section: blog
---

Expand Down
Binary file modified _includes/theme/images/10x_og_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _includes/theme/images/10x_og_image_github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _includes/theme/images/10x_og_image_news.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cb08753

Please sign in to comment.