Skip to content

Commit

Permalink
bring back search bar
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector committed Nov 8, 2024
1 parent 196ab29 commit c2ea84f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/templates/doc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { graphql } from 'gatsby';
import GuideLayout from '../layout/GuideLayout';
import SearchBar from '../layout/SearchBar';

import SEO from '../layout/seo';
import HeaderBody from '../components/headerBody';
Expand Down Expand Up @@ -76,6 +77,9 @@ class DocTemplate extends React.Component {
>
<SidebarLayout>
<article slot="content" className="doc article styleguide">

<SearchBar slot="content" page="default" />

<HeaderBody
title={node.frontmatter.title}
subtitle={node.frontmatter.subtitle}
Expand Down
7 changes: 5 additions & 2 deletions src/templates/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import React from 'react';
import GuideLayout from '../layout/GuideLayout';

import { graphql } from 'gatsby';
import Layout from '../layout/layout';
import SearchBar from '../layout/SearchBar';

import HeaderBody from '../components/headerBody';
import SEO from '../layout/seo';
import { Container, SidebarLayout } from '@pantheon-systems/pds-toolkit-react';
import { Container } from '@pantheon-systems/pds-toolkit-react';
import MdxWrapper from '../components/mdxWrapper';
import OmniSidebarNav from '../components/omniSidebarNav';

Expand Down Expand Up @@ -62,6 +63,8 @@ class VideoTemplate extends React.Component {
<ContentLayoutType slot="guide-content">
<main id="docs-main" tabIndex="-1">
<Container width={containerWidth} className="docs-video">
<SearchBar slot="content" page="default" />

<HeaderBody
title={node.frontmatter.title}
subtitle={node.frontmatter.subtitle}
Expand Down

0 comments on commit c2ea84f

Please sign in to comment.