From 242fa64cfd29021c843155e3560e7d7b44260cfd Mon Sep 17 00:00:00 2001 From: rthaxton Date: Fri, 4 Feb 2022 12:36:16 -0700 Subject: [PATCH] Changed activies page appearance to be list of blog posts. Each post has link to new page. Modified weights of each post to display in correct order --- src/components/activities_all.js | 8 ++++++-- src/pages/activities/kiyzyl_reconstruction/description.md | 2 +- src/pages/activities/krasnoyarsk_dam/description.md | 2 +- .../description.md | 2 +- src/pages/activities/note_on_food/description.md | 2 +- src/pages/activities/siberian_winter/description.md | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/activities_all.js b/src/components/activities_all.js index 5681d12..6e7a2cf 100644 --- a/src/components/activities_all.js +++ b/src/components/activities_all.js @@ -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` @@ -8,7 +8,7 @@ export default function ActivitiesAll() { edges { node { id - html + excerpt fields { slug } @@ -26,6 +26,10 @@ export default function ActivitiesAll() { {data.allMarkdownRemark.edges.map(({ node }) => (

{node.frontmatter.title}

+

+ {node.excerpt}{" "} + More +

))} diff --git a/src/pages/activities/kiyzyl_reconstruction/description.md b/src/pages/activities/kiyzyl_reconstruction/description.md index 9cf2556..41bf986 100644 --- a/src/pages/activities/kiyzyl_reconstruction/description.md +++ b/src/pages/activities/kiyzyl_reconstruction/description.md @@ -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 --- diff --git a/src/pages/activities/krasnoyarsk_dam/description.md b/src/pages/activities/krasnoyarsk_dam/description.md index 0214750..8388944 100644 --- a/src/pages/activities/krasnoyarsk_dam/description.md +++ b/src/pages/activities/krasnoyarsk_dam/description.md @@ -1,6 +1,6 @@ --- title: "Krasnoyarsk Dam Video" -weight: 3 +weight: 8 highlighted: false --- diff --git a/src/pages/activities/new_tree_ring_network_in_khakassia_and_tuva/description.md b/src/pages/activities/new_tree_ring_network_in_khakassia_and_tuva/description.md index 0ed07be..7c450f6 100644 --- a/src/pages/activities/new_tree_ring_network_in_khakassia_and_tuva/description.md +++ b/src/pages/activities/new_tree_ring_network_in_khakassia_and_tuva/description.md @@ -1,6 +1,6 @@ --- title: "New tree-ring network in Khakassia and Tuva" -weight: 1 +weight: 10 highlighted: true --- diff --git a/src/pages/activities/note_on_food/description.md b/src/pages/activities/note_on_food/description.md index e1f7683..258ad38 100644 --- a/src/pages/activities/note_on_food/description.md +++ b/src/pages/activities/note_on_food/description.md @@ -1,6 +1,6 @@ --- title: "Note on Food" -weight: 2 +weight: 9 highlighted: false --- ![Mushrooms](./mushrooms_detail.jpg) diff --git a/src/pages/activities/siberian_winter/description.md b/src/pages/activities/siberian_winter/description.md index 71cc9d7..fbd7926 100644 --- a/src/pages/activities/siberian_winter/description.md +++ b/src/pages/activities/siberian_winter/description.md @@ -1,6 +1,6 @@ --- title: "Larch Trees and the Siberian Winter" -weight: 3 +weight: 7 highlighted: false ---