Skip to content

Commit

Permalink
CORE: update img access
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Nov 27, 2024
1 parent d8ec6fb commit 5fa668f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/endorsements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion pages/services/fastsync.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
File renamed without changes

0 comments on commit 5fa668f

Please sign in to comment.