Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Add the tag to the article preview #40

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/article-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ export default ({ article }) => (
__html: article.description.childMarkdownRemark.html,
}}
/>
{article.tags.map(tag => (
<p className={styles.tag} key={tag}>
{tag}
</p>
))}
</div>
)