Skip to content

Commit

Permalink
CORE-4888: fix file path (#1158) (#1159)
Browse files Browse the repository at this point in the history
* CORE-4888: fix file path

* CORE-4888: space issue

* CORE-4888: fix data flow
  • Loading branch information
ekachxaidze98 authored Apr 29, 2024
1 parent 2f69940 commit b783d9b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions netlify-cms.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ collections:
delete: false

label: 🎓 Advisory Board
label_singular: member
label_singular: section
description: >
Advisory Board members and their details.
Expand All @@ -1462,7 +1462,7 @@ collections:
to have good performance in search engines.
- name: members
label: Advisory Board Members
file: advisory-board/advisory.yml
file: advisory/advisory.yml
fields:
- name: data
widget: list
Expand Down
2 changes: 1 addition & 1 deletion pages/governance/advisory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const getSections = async ({ ref } = {}) => {

Object.values(content).forEach((section) => {
setAssetsUrl(section)
if (section.box) setAssetsUrl(section.box)
if (section.table) setAssetsUrl(section.table)
})

return content
Expand Down
4 changes: 2 additions & 2 deletions pages/governance/supporters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const setAssetsUrl = (object) =>
})

const getSections = async ({ ref } = {}) => {
const content = await retrieveContent('board-supporters ', {
const content = await retrieveContent('board-supporters', {
ref,
transform: 'object',
})

Object.values(content).forEach((section) => {
setAssetsUrl(section)
if (section.box) setAssetsUrl(section.box)
if (section.items) setAssetsUrl(section.items)
})

return content
Expand Down
33 changes: 18 additions & 15 deletions templates/governance/supporters/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,26 @@ const GovernanceSupportersPageTemplate = ({ meta, supporters, members }) => {
<Page title={meta.title} description={meta.tagline}>
<Layout className={styles.container}>
<div className={styles.navWrapper}>
{supporters.headerLink.map((item) => (
{supporters.items.headerLink.map((item) => (
<a className={styles.linkItem} href={item.href}>
{item.link}
</a>
))}
</div>
<Hero
id={supporters.header.id}
image={supporters.header.image}
title={supporters.title}
description={supporters.description}
caption={supporters.tagline}
actions={supporters.actions}
id={supporters.items.header.id}
image={supporters.items.header.image}
title={supporters.items.title}
description={supporters.items.description}
caption={supporters.items.tagline}
actions={supporters.items.actions}
reverse
spacing
/>
<Section id="our-principles" className={styles.ourPrinciples}>
<h4>{supporters.ourPrinciples.title}</h4>
<h4>{supporters.items.ourPrinciples.title}</h4>
<div className={styles.principlesWrapper}>
{supporters.ourPrinciples.cardsDescription.map((plan) => (
{supporters.items.ourPrinciples.cardsDescription.map((plan) => (
<CardDescription key={plan.title} plan={plan} />
))}
</div>
Expand All @@ -130,24 +130,27 @@ const GovernanceSupportersPageTemplate = ({ meta, supporters, members }) => {
<div className={styles.imageWrapper}>
<img
className={styles.image}
src={supporters.principles.image}
src={supporters.items.principles.image}
alt="support"
/>
</div>
<article className={styles.content}>
<Markdown>{supporters.principles.description}</Markdown>
<Markdown>{supporters.items.principles.description}</Markdown>
</article>
</Section>
<Section id="how-it-works" className={styles.howItWorks}>
<h4>{supporters.howItWorks.title}</h4>
<h4>{supporters.items.howItWorks.title}</h4>
<div className={styles.howItWorksWrapper}>
{supporters.howItWorks.services.map((plan) => (
{supporters.items.howItWorks.services.map((plan) => (
<Card key={plan.title} plan={plan} />
))}
</div>
</Section>
<Section id={supporters.supporters.id} className={styles.supporters}>
<h3>{supporters.supporters.title}</h3>
<Section
id={supporters.items.supporters.id}
className={styles.supporters}
>
<h3>{supporters.items.supporters.title}</h3>
<form>
<TextField
className={styles.search}
Expand Down

0 comments on commit b783d9b

Please sign in to comment.