Skip to content

Commit 46253e9

Browse files
committed
Add tweaks for foundation-specific pages
Signed-off-by: Brian Warner <[email protected]>
1 parent bff2e91 commit 46253e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/assets/css/style.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
@import "_css/algolia.less";
88
@import "_css/code.less";
99
@import "_css/faq.less";
10+
@import "_css/foundation.less";

src/templates/doc.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react"
22
import { graphql } from "gatsby"
33
import Layout from "../components/Layout"
44
import DocsLayout from "../components/DocsLayout"
5+
import FoundationLayout from "../components/FoundationLayout"
56
import BlogLayout from '../components/BlogLayout';
67
import CodeLayout from "../components/CodeLayout";
78
import FAQLayout from "../components/FAQLayout";
@@ -13,6 +14,7 @@ interface Props {
1314

1415
const layoutMap: any = {
1516
docs: DocsLayout,
17+
foundation: FoundationLayout,
1618
blog: BlogLayout,
1719
code: CodeLayout,
1820
faq: FAQLayout,
@@ -21,7 +23,7 @@ const layoutMap: any = {
2123
const Blog = ({ data, pageContext }: Props) => {
2224
const {
2325
doc: {
24-
frontmatter: { title, date, permalink, byline, guestBio, layout },
26+
frontmatter: { title, date, heroText, permalink, byline, guestBio, layout },
2527
rawMarkdownBody,
2628
},
2729
nextDoc,
@@ -32,6 +34,7 @@ const Blog = ({ data, pageContext }: Props) => {
3234
<InnerLayout
3335
title={title}
3436
date={date}
37+
heroText={heroText}
3538
permalink={permalink}
3639
byline={byline}
3740
guestBio={guestBio}
@@ -49,6 +52,7 @@ export const query = graphql`
4952
doc: markdownRemark(frontmatter: { permalink: { eq: $permalink } }) {
5053
frontmatter {
5154
title
55+
heroText
5256
date
5357
permalink
5458
byline

0 commit comments

Comments
 (0)