Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Fix build (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp authored Apr 6, 2022
1 parent ad717f9 commit 29f76a4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/templates/resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Helmet } from 'react-helmet';
import { graphql } from 'gatsby';
import ContentLayout from '../components/layouts/ContentLayout';
import Resource from '../components/resources/Resource';

Expand All @@ -18,3 +19,18 @@ export default ({ data }) => (
<Resource resource={data.resource} />
</ContentLayout>
);

export const query = graphql`
query($slug: String!) {
resource: contentfulResource(slug: { eq: $slug }) {
title
slug
date
webinarYoutubeLink
webinarSlidesLink
body {
json
}
}
}
`;

0 comments on commit 29f76a4

Please sign in to comment.