From 2572c2f9feaa4f81814bbd893b598c4af5e1b9b8 Mon Sep 17 00:00:00 2001 From: Tim Showalter Date: Fri, 31 Jan 2025 00:23:09 -0800 Subject: [PATCH] Fix sort order; Organizers is block common between BARGE & EMBARGO. --- content/barge/2013/index.md | 5 ++--- content/barge/_index.md | 18 ++++++------------ content/embargo/2011/_index.md | 1 + content/embargo/2012/_index.md | 1 + content/embargo/2013/_index.md | 1 + content/embargo/2014/_index.md | 1 + content/embargo/2015/_index.md | 1 + content/embargo/2016/_index.md | 1 + content/embargo/2017/_index.md | 1 + content/embargo/2018/_index.md | 1 + content/embargo/2019/_index.md | 1 + content/embargo/2020/_index.md | 1 + content/embargo/2021/_index.md | 1 + content/embargo/2022/_index.md | 1 + content/embargo/2023/_index.md | 1 + content/embargo/2024/_index.md | 1 + content/embargo/2025/_index.md | 1 + content/embargo/_index.md | 11 +++++------ .../post_nav_links_in_section_reversed.html | 10 ++++------ layouts/sequential-section/list.html | 8 ++++++++ layouts/shortcodes/current-organizers.md | 17 +++++++++++++++++ layouts/shortcodes/organizers.md | 6 ------ 22 files changed, 57 insertions(+), 33 deletions(-) create mode 100644 layouts/shortcodes/current-organizers.md delete mode 100644 layouts/shortcodes/organizers.md diff --git a/content/barge/2013/index.md b/content/barge/2013/index.md index 75f1358..bf737e4 100644 --- a/content/barge/2013/index.md +++ b/content/barge/2013/index.md @@ -6,11 +6,10 @@ tags: - barge - 2013 date: 2013-09-01 +cover: + image: BARGE-2013-815x302-1920w.jpg --- -{{< figure src=BARGE-2013-815x302-1920w.jpg - caption="BARGE 2013 Group Picture" >}} - This year's expanded BARGE was held at Binion's Casino. This year's speaker was Stanford Wong, who gave his talk at the Symposium on Friday night. The lowball tournament moved again, this time to Monday night where it was won by Andy diff --git a/content/barge/_index.md b/content/barge/_index.md index 882ebfa..89d43f2 100644 --- a/content/barge/_index.md +++ b/content/barge/_index.md @@ -2,11 +2,13 @@ title: BARGE draft: false weight: -10 -tags: - - barge type: sequential-section +params: + orderByTitle: true + reverseOrder: true --- -Quick Links for BARGE: [2024 Schedule]({{< relref "2024/schedule/" >}}) — +Quick Links for BARGE: [2025]({{< relref "2025/" >}}) — +[2025 Schedule]({{< relref "2025/schedule/" >}}) — [Results]({{< relref "results/" >}}) ![](/images/BARGE-2013-815x302-1920w.jpg) @@ -20,13 +22,8 @@ In order to participate in BARGE: you must register via the Internet. ### Location -BARGE is held at a Las Vegas resort/casino that can accomidate 100-200 poker -players doing shenanigans. - [BARGE 2025]({{< relref "2025/" >}}) will be held at the Orleans Hotel & Casino! -[BARGE 2024]({{< relref "2024/" >}}) was held at the Westgate just off of the Las Vegas Strip. - ### Registration Registration for BARGE 2025 is not yet open. @@ -84,10 +81,7 @@ All BARGE events are non-smoking. ### So Who Are the "Organizers" Anyway? -BARGE is organized by {{% organizers %}} with more than occasional advice and -emergency help from Chuck Weinstock and Peter Secor, BARGE organizers emeritus. -We also wish to give a "shout out" to BARGE elder statesman and -former organizer, Mike Zimmers. +{{% current-organizers event="BARGE" year="2025" %}} ### I have a question, complaint, or gripe? Who should I contact? diff --git a/content/embargo/2011/_index.md b/content/embargo/2011/_index.md index 9aada25..6a6bde7 100644 --- a/content/embargo/2011/_index.md +++ b/content/embargo/2011/_index.md @@ -5,6 +5,7 @@ tags: - embargo - 2011 date: 2011-03-01 +type: sequential-section --- * [View Results](../results/2011/) diff --git a/content/embargo/2012/_index.md b/content/embargo/2012/_index.md index 6fa2069..2e4337d 100644 --- a/content/embargo/2012/_index.md +++ b/content/embargo/2012/_index.md @@ -5,6 +5,7 @@ tags: - embargo - 2012 date: 2012-03-01 +type: sequential-section --- * [View Results](../results/2012/) diff --git a/content/embargo/2013/_index.md b/content/embargo/2013/_index.md index b17d0f1..b4a82f5 100644 --- a/content/embargo/2013/_index.md +++ b/content/embargo/2013/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2013 draft: false tags: diff --git a/content/embargo/2014/_index.md b/content/embargo/2014/_index.md index 6548aa6..e6bc7e4 100644 --- a/content/embargo/2014/_index.md +++ b/content/embargo/2014/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2014 draft: false tags: diff --git a/content/embargo/2015/_index.md b/content/embargo/2015/_index.md index 04b6f17..d691ccf 100644 --- a/content/embargo/2015/_index.md +++ b/content/embargo/2015/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2015 draft: false tags: diff --git a/content/embargo/2016/_index.md b/content/embargo/2016/_index.md index cbdde85..e5185a7 100644 --- a/content/embargo/2016/_index.md +++ b/content/embargo/2016/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2016 draft: false tags: diff --git a/content/embargo/2017/_index.md b/content/embargo/2017/_index.md index 6008c6b..356a7c5 100644 --- a/content/embargo/2017/_index.md +++ b/content/embargo/2017/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2017 draft: false tags: diff --git a/content/embargo/2018/_index.md b/content/embargo/2018/_index.md index e4b24c8..cb96acd 100644 --- a/content/embargo/2018/_index.md +++ b/content/embargo/2018/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2018 draft: false tags: diff --git a/content/embargo/2019/_index.md b/content/embargo/2019/_index.md index 66779d1..6ab68e1 100644 --- a/content/embargo/2019/_index.md +++ b/content/embargo/2019/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2019 draft: false tags: diff --git a/content/embargo/2020/_index.md b/content/embargo/2020/_index.md index 7a6077c..e931ad3 100644 --- a/content/embargo/2020/_index.md +++ b/content/embargo/2020/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2020 draft: false tags: diff --git a/content/embargo/2021/_index.md b/content/embargo/2021/_index.md index 60dd4af..b5dbf5b 100644 --- a/content/embargo/2021/_index.md +++ b/content/embargo/2021/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2021 draft: false tags: diff --git a/content/embargo/2022/_index.md b/content/embargo/2022/_index.md index defa1da..44344e8 100644 --- a/content/embargo/2022/_index.md +++ b/content/embargo/2022/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2022 draft: false tags: diff --git a/content/embargo/2023/_index.md b/content/embargo/2023/_index.md index d3b8e1a..1c7de19 100644 --- a/content/embargo/2023/_index.md +++ b/content/embargo/2023/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2023 draft: false tags: diff --git a/content/embargo/2024/_index.md b/content/embargo/2024/_index.md index d3731fd..5a74a06 100644 --- a/content/embargo/2024/_index.md +++ b/content/embargo/2024/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2024 draft: false tags: diff --git a/content/embargo/2025/_index.md b/content/embargo/2025/_index.md index 62301b1..07fd622 100644 --- a/content/embargo/2025/_index.md +++ b/content/embargo/2025/_index.md @@ -1,4 +1,5 @@ --- +type: sequential-section title: EMBARGO 2025 draft: false tags: diff --git a/content/embargo/_index.md b/content/embargo/_index.md index acc3e8d..0d2ddfb 100644 --- a/content/embargo/_index.md +++ b/content/embargo/_index.md @@ -1,10 +1,12 @@ --- -tags: - - embargo title: EMBARGO draft: false aliases: /embargo-info weight: -5 +type: sequential-section +params: + orderByTitle: true + reverseOrder: true --- Quick Links for EMBARGO: [EMBARGO 2025](/embargo/2025/) @@ -54,10 +56,7 @@ When held live, all EMBARGO events are non-smoking. ### So Who Are the "Organizers" Anyway? -EMBARGO 2024 is being organized by {{% organizers %}} with more than -occasional advice and emergency help from Chuck Weinstock and Peter Secor, -BARGE Organizers Emeritus. We also wish to give a "shout out" to -BARGE elder statesman and former organizer, Mike Zimmers. +{{% current-organizers event="EMBARGO" year="2025" %}} ### But I have a question/complaint/praise/gripe? Who should I contact? diff --git a/layouts/partials/post_nav_links_in_section_reversed.html b/layouts/partials/post_nav_links_in_section_reversed.html index a538c56..96d5b30 100644 --- a/layouts/partials/post_nav_links_in_section_reversed.html +++ b/layouts/partials/post_nav_links_in_section_reversed.html @@ -1,20 +1,18 @@ +{{ $pages := (union .Page.Parent.RegularPages .Parent.Sections).ByTitle.Reverse }} + diff --git a/layouts/sequential-section/list.html b/layouts/sequential-section/list.html index 46efb44..92ee82c 100644 --- a/layouts/sequential-section/list.html +++ b/layouts/sequential-section/list.html @@ -77,6 +77,14 @@

{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} {{- end }} +{{- if .Param "orderByTitle" }} +{{- $pages = $pages.ByTitle }} +{{- end }} + +{{- if .Param "reverseOrder" }} +{{- $pages = $pages.Reverse }} +{{- end }} + {{- $paginator := .Paginate $pages }} {{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} diff --git a/layouts/shortcodes/current-organizers.md b/layouts/shortcodes/current-organizers.md new file mode 100644 index 0000000..a8dd4ac --- /dev/null +++ b/layouts/shortcodes/current-organizers.md @@ -0,0 +1,17 @@ +{{/* + +This is the current organizers list and is used on a couple different pages. +If you are trying to capture the current organizers, cut-and-paste. + +*/}} +{{ .Get "event" }} {{ .Get "year" }} is being organized by +[Russ Fox](mailto:russ@barge.org), +[Rich Bremer](mailto:omaholic@barge.org), +[Jeff Deitch](mailto:blofeld@barge.org), +[Stevan Goldman](mailto:goldie@barge.org), +and +[Sharon Goldman](mailto:sharon@barge.org) +with more than occasional advice and +emergency help from Chuck Weinstock and Peter Secor, {{ .Get "event" }} +Organizers Emeritus. We also wish to give a "shout out" to BARGE elder +statesman and former organizer, Mike Zimmers. diff --git a/layouts/shortcodes/organizers.md b/layouts/shortcodes/organizers.md deleted file mode 100644 index 0c63f69..0000000 --- a/layouts/shortcodes/organizers.md +++ /dev/null @@ -1,6 +0,0 @@ -[Russ Fox](mailto:russ@barge.org), -[Rich Bremer](mailto:omaholic@barge.org), -[Jeff Deitch](mailto:blofeld@barge.org), -[Stevan Goldman](mailto:goldie@barge.org), -and -[Sharon Goldman](mailto:sharon@barge.org)