From a61a5b19e8f20df8f5675ee16532fbf8e419ae31 Mon Sep 17 00:00:00 2001
From: Chris Cochrun <chris@cochrun.xyz>
Date: Fri, 4 Nov 2022 10:55:52 -0500
Subject: [PATCH] making staff ordered by weight

---
 content/staff/april-teves/index.md            |  1 +
 content/staff/billy-cayou/index.md            |  1 +
 .../staff/brian-and-julie-fischer/index.md    |  1 +
 .../staff/chris-and-abbie-cochrun/index.md    |  1 +
 content/staff/dani-rouse/index.md             |  1 +
 content/staff/ethan-rose/index.md             |  1 +
 content/staff/janice-lundquist/index.md       |  1 +
 content/staff/lavonne-ponstein/index.md       |  1 +
 content/staff/lewis-smith/index.md            |  1 +
 content/staff/rob-and-taffy-lewis/index.md    |  1 +
 layouts/staff/list.html                       | 41 +++++++++++++++++++
 11 files changed, 51 insertions(+)
 create mode 100644 layouts/staff/list.html

diff --git a/content/staff/april-teves/index.md b/content/staff/april-teves/index.md
index 18a1756..82bbe63 100644
--- a/content/staff/april-teves/index.md
+++ b/content/staff/april-teves/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Arnie and April moved to Logan, Kansas in October of 2009."
 layout: "simple"
 summary: "Arnie and April moved to Logan, Kansas in October of 2009. April’s grandfather’s family homesteaded south of Logan and she grew up coming to Logan every year for family reunions."
+weight: 70
 ---
 ![April and Arnie Teves](featured.jpg "April and Arnie Teves")
 
diff --git a/content/staff/billy-cayou/index.md b/content/staff/billy-cayou/index.md
index ed106d3..48e6850 100644
--- a/content/staff/billy-cayou/index.md
+++ b/content/staff/billy-cayou/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Billy grew up in Oxford, Nebraska and was a part of Southern Valley TFC throughout Middle School and High School."
 layout: "simple"
 summary: "Billy grew up in Oxford, Nebraska and was a part of Southern Valley TFC throughout Middle School and High School. During college..."
+weight: 80
 ---
 ![Billy Cayou](featured.jpg "Billy Cayou loves disk golf!")
 
diff --git a/content/staff/brian-and-julie-fischer/index.md b/content/staff/brian-and-julie-fischer/index.md
index 956ff13..61a0c67 100644
--- a/content/staff/brian-and-julie-fischer/index.md
+++ b/content/staff/brian-and-julie-fischer/index.md
@@ -6,6 +6,7 @@ image: "img/brain.jpg"
 description: "As a teenager Brian was a part of the Golden Plains Youth For Christ ministry at Northern Valley and he participated in events like Bible quizzing and monthly rallies."
 layout: "simple"
 summary: "As a teenager Brian was a part of the Golden Plains Youth For Christ ministry at Northern Valley and he participated in events like Bible quizzing and monthly rallies."
+weight: 10
 ---
 ![Brian's Family](featured.jpg "Brian's Family")
 
diff --git a/content/staff/chris-and-abbie-cochrun/index.md b/content/staff/chris-and-abbie-cochrun/index.md
index 7af86e3..5c286c5 100644
--- a/content/staff/chris-and-abbie-cochrun/index.md
+++ b/content/staff/chris-and-abbie-cochrun/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Chris and Abbie Cochrun serve together on TFC Staff!"
 layout: "simple"
 summary: "Chris and Abbie Cochrun serve together on TFC Staff! Chris grew up in Agra KS as a part of the Eastern Heights TFC group, Abbie grew up as a part of the Northern Valley TFC group..."
+weight: 70
 ---
 ![Chris and Abbie's Family](featured.jpg "Chris and Abbie's Family!")
 
diff --git a/content/staff/dani-rouse/index.md b/content/staff/dani-rouse/index.md
index cd3a671..35e12ee 100644
--- a/content/staff/dani-rouse/index.md
+++ b/content/staff/dani-rouse/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Dani attended the Oberlin TFC Group as a teenager."
 layout: "simple"
 summary: "Dani attended the Oberlin TFC Group as a teenager. Throughout high school, she was  involved in camp, mission trip, and our student leadership team."
+weight: 90
 ---
 ![Dani Rouse](featured.jpg "Dani loves guns!")
 
diff --git a/content/staff/ethan-rose/index.md b/content/staff/ethan-rose/index.md
index f699603..e127fb1 100644
--- a/content/staff/ethan-rose/index.md
+++ b/content/staff/ethan-rose/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Ethan’s TFC journey began as a teenager in the Eastern Heights TFC group in Agra, KS."
 layout: "simple"
 summary: "Ethan’s TFC journey began as a teenager in the Eastern Heights TFC group in Agra, KS. Throughout his high school years his involvement in the ministry grew..."
+weight: 60
 ---
 ![Ethan Rose](featured.jpg "Ethan at camp!")
 
diff --git a/content/staff/janice-lundquist/index.md b/content/staff/janice-lundquist/index.md
index 763bd18..38e02b5 100644
--- a/content/staff/janice-lundquist/index.md
+++ b/content/staff/janice-lundquist/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "In the fall of 1981, Janice Lundquist became a part of the TFC Staff."
 layout: "simple"
 summary: "In the fall of 1981, Janice Lundquist became a part of the TFC Staff. She has served in and enjoyed almost every aspect of the ministry during that time."
+weight: 30
 ---
 ![Janice Lundquist](featured.jpg "Janice Lundquist")
 
diff --git a/content/staff/lavonne-ponstein/index.md b/content/staff/lavonne-ponstein/index.md
index e1e7f1e..7015bbf 100644
--- a/content/staff/lavonne-ponstein/index.md
+++ b/content/staff/lavonne-ponstein/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Lavonne joined the TFC adventure back in 1983. For years she worked directly with students as a leader of the weekly Connection groups."
 layout: "simple"
 summary: "Lavonne joined the TFC adventure back in 1983. For years she worked directly with students as a leader of the weekly Connection groups."
+weight: 20
 ---
 ![Lavonne Ponstein](featured.jpg "Lavonne Ponstein")
 
diff --git a/content/staff/lewis-smith/index.md b/content/staff/lewis-smith/index.md
index 57dd5b9..58d8f58 100644
--- a/content/staff/lewis-smith/index.md
+++ b/content/staff/lewis-smith/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Lewis grew up in a ministry a lot like TFC Connection."
 layout: "simple"
 summary: "Lewis grew up in a ministry a lot like TFC Connection. Because of this kind of ministry, he fell in love with TFC. As a ministry that is involved with several communities..."
+weight: 40
 ---
 ![Lewis and Susan Smith](featured.jpg "Lewis and Susan Smith!")
 
diff --git a/content/staff/rob-and-taffy-lewis/index.md b/content/staff/rob-and-taffy-lewis/index.md
index 76d90bb..b8d39ac 100644
--- a/content/staff/rob-and-taffy-lewis/index.md
+++ b/content/staff/rob-and-taffy-lewis/index.md
@@ -6,6 +6,7 @@ featured_image: ""
 description: "Rob Lewis joined the TFC Staff in 2007 after having volunteered as a helper at the Southern Valley TFC group."
 layout: "simple"
 summary: "Rob Lewis joined the TFC Staff in 2007 after having volunteered as a helper at the Southern Valley TFC group. He is the Southern Valley Director and brings his..."
+weight: 50
 ---
 ![Rob and Taffy Lewis](featured.jpg "Rob and Taffy's family!")
 
diff --git a/layouts/staff/list.html b/layouts/staff/list.html
new file mode 100644
index 0000000..06b8820
--- /dev/null
+++ b/layouts/staff/list.html
@@ -0,0 +1,41 @@
+{{ define "main" }}
+  {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.list.showTableOfContents | default false)) (in .TableOfContents "<ul") }}
+  <header>
+    {{ if .Params.showBreadcrumbs | default (.Site.Params.list.showBreadcrumbs | default false) }}
+      {{ partial "breadcrumbs.html" . }}
+    {{ end }}
+    <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .Title }}</h1>
+  </header>
+  <section
+    class="{{ if $toc -}}
+      mt-12
+    {{- else -}}
+      mt-0
+    {{- end }} prose flex max-w-full flex-col dark:prose-invert lg:flex-row"
+  >
+    {{ if $toc }}
+      <div class="order-first px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
+        <div class="toc ltr:pl-5 rtl:pr-5 lg:sticky lg:top-10">
+          {{ partial "toc.html" . }}
+        </div>
+      </div>
+    {{ end }}
+    <div class="min-w-0 min-h-0 max-w-prose">
+      {{ .Content | emojify }}
+    </div>
+  </section>
+  {{ if gt .Pages 0 }}
+    <section class="space-y-10 w-full">
+      {{ range .Pages.ByWeight }}
+        {{ partial "article-link.html" . }}
+      {{ end }}
+    </section>
+    {{ partial "pagination.html" . }}
+  {{ else }}
+    <section class="mt-10 prose dark:prose-invert">
+      <p class="py-8 border-t">
+        <em>{{ i18n "list.no_articles" | emojify }}</em>
+      </p>
+    </section>
+  {{ end }}
+{{ end }}