From 5fa668f52a83a0dd1d5b69b1557527da0f8f5711 Mon Sep 17 00:00:00 2001 From: ekachxaidze98 Date: Wed, 27 Nov 2024 11:28:04 +0400 Subject: [PATCH] CORE: update img access --- data/endorsements.yml | 4 ++-- data/home.yml | 2 +- pages/services/fastsync.jsx | 4 +++- .../logos/{logo_TechDico.png => techDico.png} | Bin 4 files changed, 6 insertions(+), 4 deletions(-) rename public/images/logos/{logo_TechDico.png => techDico.png} (100%) diff --git a/data/endorsements.yml b/data/endorsements.yml index 9e69cf69c..78a9bec4a 100644 --- a/data/endorsements.yml +++ b/data/endorsements.yml @@ -407,7 +407,7 @@ organizations: id: tech-dico name: TechDico url: https://www.techdico.com/ - logo: logo_TechDico.png + logo: techDico.png testimonial: *Philippe-RĂ©gall - &oxisco id: oxisco @@ -523,7 +523,7 @@ organizations: id: tech-dico name: TechDico url: https://www.techdico.com/ - logo: logo_TechDico.png + logo: techDico.png - &ezassi id: ezassi name: Ezassi diff --git a/data/home.yml b/data/home.yml index 2b14ce677..d4eada9ea 100644 --- a/data/home.yml +++ b/data/home.yml @@ -157,7 +157,7 @@ users: alt: "nvidia" - img: /images/logos/anthropic.svg alt: "anthropic" - - img: /images/logos/logo_TechDico.png + - img: /images/logos/techDico.png alt: "TechDico" # - img: /images/logos/grammarly.svg # alt: "grammarly" diff --git a/pages/services/fastsync.jsx b/pages/services/fastsync.jsx index 7e0c95846..40c8f1f09 100644 --- a/pages/services/fastsync.jsx +++ b/pages/services/fastsync.jsx @@ -5,11 +5,13 @@ import retrieveContent from 'content' const ASSETS_BASE_URL = 'https://oacore.github.io/content/' -const setAssetsUrl = (object) => +const setAssetsUrl = (object) => { Object.entries(object).forEach(([key, value]) => { if (typeof value === 'string' && value.includes('/images')) object[key] = ASSETS_BASE_URL + value + else if (typeof value === 'object') setAssetsUrl(value) }) +} const getSections = async ({ ref } = {}) => { const page = await retrieveContent('fastsync', { diff --git a/public/images/logos/logo_TechDico.png b/public/images/logos/techDico.png similarity index 100% rename from public/images/logos/logo_TechDico.png rename to public/images/logos/techDico.png