Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ exports.createPages = ({ actions, graphql }) => {
}
}
research_tags
software {
name
}
submitter {
name
family_name
Expand Down
1 change: 1 addition & 0 deletions src/components/Badges.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const BadgeTag = ({ tag, style }) => {
)
}


const TagsList = ({ tags, style }) => {
const tags_sorted = [...tags].sort()
return (
Expand Down
12 changes: 9 additions & 3 deletions src/components/ModelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const ModelList = ({ posts }) => {
: post
)
}

// Custom style for compute_tags
//
return (
<section className="container models">
{
Expand All @@ -27,7 +30,8 @@ const ModelList = ({ posts }) => {
title={post.frontmatter.title}
creator={post.frontmatter.submitter}
date={post.frontmatter.date}
tags={post.frontmatter.research_tags.concat(post.frontmatter.compute_tags)}
tags={post.frontmatter.research_tags}
compute_tags={post.frontmatter.compute_tags}
software={post.frontmatter.software}
landing_image={post.frontmatter.images.landing_image}
key={post.fields.slug}
Expand All @@ -53,6 +57,7 @@ const ModelListItem = ({
creator,
date,
tags,
compute_tags,
software,
landing_image,
}) => {
Expand Down Expand Up @@ -94,7 +99,8 @@ const ModelListItem = ({
</p>
}
<p><b>Tags:</b></p>
<p><TagsList tags={tags}/></p>
<p><TagsList tags={tags} style={{ backgroundColor: 'green', color: '#fff' }}/></p>
<p><TagsList tags={compute_tags}/></p>
</th>
</tr>
</table>
Expand Down Expand Up @@ -152,7 +158,7 @@ const ModelCarouselItem = ({
</div>
</div>
</div>
);
);
}

const personEqual = (person1, person2) => (
Expand Down
Loading