Skip to content

Commit 0c1863f

Browse files
committed
Fix / tweak blog category display
1 parent 3ec8ea7 commit 0c1863f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

_blogposts/2020-08-28-new-rescript-logo.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
author: made_by_betty
33
date: "2020-08-27"
44
title: "A New Logo for ReScript"
5+
category: "ecosystem"
56
previewImg: https://res.cloudinary.com/dmm9n7v9f/image/upload/v1598616442/Reason%20Association/rescript-lang.org/Art-3-rescript-launch_ovoibg.jpg
67
articleImg: https://res.cloudinary.com/dmm9n7v9f/image/upload/v1598616442/Reason%20Association/rescript-lang.org/ReScript-3_by4q2u.jpg
78
description: |

src/Blog.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Blog.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ let default = (props: props): React.element => {
338338
{Belt.Array.mapWithIndex(rest, (i, post) => {
339339
let badge = post.frontmatter.badge->Js.Null.toOption
340340
let category =
341-
first.frontmatter.category
341+
post.frontmatter.category
342342
->Js.Null.toOption
343343
->Belt.Option.map(category => category->BlogFrontmatter.Category.toString)
344344

0 commit comments

Comments
 (0)