Skip to content

Commit

Permalink
fix: Ensure overview template guides are properly linked
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 28, 2020
1 parent c196f68 commit f8d64cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/OverviewTemplate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { graphql } from 'gatsby';
import { graphql, Link } from 'gatsby';
import PropTypes from 'prop-types';

import Layout from '../components/Layout';
Expand All @@ -25,6 +25,8 @@ const OverviewTemplate = ({ data }) => {
<GuideListing.List>
{guides?.nodes.map(({ frontmatter }, index) => (
<GuideTile
as={Link}
to={frontmatter.path}
key={index}
duration={frontmatter.duration}
title={frontmatter.tileShorthand?.title || frontmatter.title}
Expand Down

0 comments on commit f8d64cc

Please sign in to comment.