Skip to content

Commit

Permalink
Update Story.jsx
Browse files Browse the repository at this point in the history
Put tags above story content.
Related to #65
  • Loading branch information
jbelien committed Dec 18, 2020
1 parent fd37866 commit d524ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/Story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const StoryTemplate = ({ data, preview }) => (
<article>
<StoryHeader title={data.title} date={data.date} author={data.author} />
<Article>
{preview ? data.body : data.body && <div dangerouslySetInnerHTML={{ __html: data.body }} />}
<Tags className="gap">{data.tags && data.tags.map(tag => <Tag key={tag}>{tag}</Tag>)}</Tags>
{preview ? data.body : data.body && <div dangerouslySetInnerHTML={{ __html: data.body }} />}
</Article>
</article>
);
Expand Down

0 comments on commit d524ec2

Please sign in to comment.