Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activities Page Format #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 6 additions & 2 deletions src/components/activities_all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"
import { useStaticQuery, graphql } from "gatsby"
import { Link, useStaticQuery, graphql } from "gatsby"

export default function ActivitiesAll() {
const data = useStaticQuery(graphql`
Expand All @@ -8,7 +8,7 @@ export default function ActivitiesAll() {
edges {
node {
id
html
excerpt
fields {
slug
}
Expand All @@ -26,6 +26,10 @@ export default function ActivitiesAll() {
{data.allMarkdownRemark.edges.map(({ node }) => (
<div key={node.id}>
<h2>{node.frontmatter.title}</h2>
<p>
{node.excerpt}{" "}
<Link to={node.fields.slug}>More</Link>
</p>
<div dangerouslySetInnerHTML={{ __html: node.html }} />
</div>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/activities/kiyzyl_reconstruction/description.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "NEW PAPER! 'Unprecedented acceleration of winter discharge of Upper Yenisei River inferred from tree rings'"
weight: 3
weight: 1
highlighted: false
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/activities/krasnoyarsk_dam/description.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Krasnoyarsk Dam Video"
weight: 3
weight: 8
highlighted: false
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "New tree-ring network in Khakassia and Tuva"
weight: 1
weight: 10
highlighted: true
---

Expand Down
2 changes: 1 addition & 1 deletion src/pages/activities/note_on_food/description.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Note on Food"
weight: 2
weight: 9
highlighted: false
---
![Mushrooms](./mushrooms_detail.jpg)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/activities/siberian_winter/description.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Larch Trees and the Siberian Winter"
weight: 3
weight: 7
highlighted: false
---

Expand Down