Skip to content

Commit

Permalink
allow buttons below testimonial sections
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jul 20, 2023
1 parent 8df5ba7 commit 0296d01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ exports.createSchemaCustomization = ({ actions }) => {
content: [ContentfulLandingPageContent] @link(by: "id", from: "content___NODE")
secondaryHeading: String
image: ContentfulAsset @link(by: "id", from: "image___NODE")
links: [ContentfulLink] @link(by: "id", from: "links___NODE")
}
type ContentfulLandingPageContent implements ContentfulReference & ContentfulEntry & Node @dontInfer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export const query = graphql`
gatsbyImageData(layout: CONSTRAINED)
title
}
links {
id
href
text
}
content {
id
primaryText {
Expand Down
4 changes: 3 additions & 1 deletion gatsby-theme-landing-page/src/sections/testimonial.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ import * as styles from "./testimonial.module.css";
import Section from "../components/section";
import MarkdownText, { getText } from "../components/markdown-text";
import { GatsbyImage, getImage } from "gatsby-plugin-image";
import Links from "../components/links";

export default function Testimonial({ content }) {
export default function Testimonial({ content, links }) {
return (
<Section>
<div className={styles.content}>
{content.map((item) => (
<TestimonialContent {...item} />
))}
</div>
{links && <Links links={links} />}
</Section>
);
}
Expand Down

0 comments on commit 0296d01

Please sign in to comment.