Skip to content

Commit

Permalink
fix: Hide duration when there is no duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 18, 2020
1 parent 1e94565 commit e20e8fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/templates/GuideTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ const GuideTemplate = ({ data }) => {
<SEO title={title} description={description} />
<div className={styles.header}>
<PageTitle>{title}</PageTitle>
<div className={styles.duration}>
<FeatherIcon name="clock" className={styles.clock} />
{duration}
</div>
{duration && (
<div className={styles.duration}>
<FeatherIcon name="clock" className={styles.clock} />
{duration}
</div>
)}
</div>
<div className={styles.mdxContainer}>
<MDXProvider components={components}>
Expand Down

0 comments on commit e20e8fe

Please sign in to comment.