Skip to content

Commit

Permalink
fix: prettify LabOverviewTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
alexronquillo committed Oct 22, 2021
1 parent b7f7c19 commit 88cca0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/templates/LabOverviewTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const LabOverviewTemplate = ({ data, location }) => {
const { mdx, guides } = data;
const { frontmatter, body } = mdx;
const { title, description } = frontmatter;
console.log(guides?.nodes)
console.log(guides?.nodes);

function sortProcedures(a, b) {
if (a.frontmatter.procIdx > b.frontmatter.procIdx) {
Expand Down Expand Up @@ -49,8 +49,9 @@ const LabOverviewTemplate = ({ data, location }) => {
to={frontmatter.path}
key={index}
duration={frontmatter.duration}
title={`${frontmatter.procIdx}. ${frontmatter.tileShorthand?.title || frontmatter.title
}`}
title={`${frontmatter.procIdx}. ${
frontmatter.tileShorthand?.title || frontmatter.title
}`}
description={
frontmatter.tileShorthand?.description ||
frontmatter.description
Expand Down

0 comments on commit 88cca0f

Please sign in to comment.