Skip to content

Commit

Permalink
CORE-4888: add header (#1164) (#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 authored Apr 30, 2024
1 parent 6605bdb commit ff7b62e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
32 changes: 30 additions & 2 deletions netlify-cms.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1453,13 +1453,41 @@ collections:
hint: >
Displayed in the browser as a tab name and in Google, when
the page appears in the search results.
- name: description
- name: tagline
widget: text
label: Description
hint: >
Description of the page, not visible on the page but will be shown
in search engines when the page appears in results. Important
in search engines when the page appers in results. Important
to have good performance in search engines.
- name: header
label: Header (title, description, headline)
file: advisory/header.yml
fields:
- name: title
widget: string
hint: >
The title of the page. Displayed on the page below header.
- name: header
widget: object
label: Header
hint: >
Anchor links to the page content. Must to equal block name.
fields:
- name: title
widget: string
label: Title
hint: >
The title of the page. Displayed on the page below header.
- name: description
widget: text
label: Description
hint: >
Description of the page.
- name: image
widget: file
label: Image
hint: Image on the right side.
- name: members
label: Advisory Board Members
file: advisory/advisory.yml
Expand Down
8 changes: 4 additions & 4 deletions templates/governance/advisory/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import styles from './advisory.module.scss'
import { Page } from 'components'
import { Hero, Layout, Section } from 'design-v2/components'

const Advisory = ({ meta, advisory }) => (
const Advisory = ({ meta, header, advisory }) => (
<Page>
<Layout title={meta.title} description={meta.tagline}>
<Hero
image={advisory.header.image}
title={meta.title}
description={advisory.header.description}
image={header.header.image}
title={header.header.title}
description={header.header.description}
/>
<Section className={styles.supporters}>
<h3>{advisory.table.title}</h3>
Expand Down

0 comments on commit ff7b62e

Please sign in to comment.