[postgis-tickets] [SCM] postgis.net branch hugo updated. 0223f16042de79ea7abe9bcfa4a01b1665371e24
git at osgeo.org
git at osgeo.org
Sat Feb 26 23:53:44 PST 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "postgis.net".
The branch, hugo has been updated
via 0223f16042de79ea7abe9bcfa4a01b1665371e24 (commit)
from edfceef95e2dc720902381cf3f057ba597ebcaa3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0223f16042de79ea7abe9bcfa4a01b1665371e24
Author: Regina Obe <lr at pcorp.us>
Date: Sun Feb 27 02:53:38 2022 -0500
Format events as separate
diff --git a/archetypes/event.md b/archetypes/event.md
index 848dd26..2c1ae13 100644
--- a/archetypes/event.md
+++ b/archetypes/event.md
@@ -1,6 +1,9 @@
---
title: "{{ replace .Name "-" " " | title }}" # Title of the blog post.
date: {{ .Date }} # Date of post creation.
+eventDates: "2022 Jun 13 - Jun 15" # Date of event start.
+eventLink: "https://whatever" #event url
+videosLink: "https://whatever"
description: "Article description." # Description used for search engine.
featured: true # Sets if post is a featured post, making appear on the home page side bar.
draft: false # Sets whether to render this page. Draft of true will not be rendered.
diff --git a/config/_default/config.toml b/config/_default/config.toml
index 36236aa..b64129b 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -9,9 +9,10 @@ disqusShortname = ""
[taxonomies]
category = "category"
tag = "tags"
-series = "series"
+event = "events"
[permalinks]
'/pages/' = '/:filename/'
'/post/' = '/posts/:year/:month/:day/:filename/'
+ '/events/' = '/events/:filename/'
'/' = '/:filename/'
diff --git a/config/_default/params.toml b/config/_default/params.toml
index 7a3497b..483e6bd 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -4,7 +4,7 @@ keywords = ["postgis", "database", "spatial", "sql", "mapping", "queries", "gis"
enableRobotsTXT = false
largeTwitterCard = false # set to true if you want to show a large twitter card image. The default is a small twitter card image
introDescription = "PostGIS provides spatial objects for the PostgreSQL database, allowing storage and query of information about location and mapping."
-introURL = "index/" # set the url for the 'read more' button below the introDescription, or set to false to not show the button
+introURL = "/" # set the url for the 'read more' button below the introDescription, or set to false to not show the button
# showShare = false # Uncomment to not show share buttons on each post. Also available in each post's front matter.
@@ -34,7 +34,7 @@ codeLineNumbers = false
enableMathNotation = false
# directory(s) where your articles are located
-mainSections = ["pages", "post"] # see config details here https://gohugo.io/functions/where/#mainsections
+mainSections = ["pages", "post", "events"] # see config details here https://gohugo.io/functions/where/#mainsections
# center logo on navbar
centerLogo = false # Set to "true" for centering or "false" for left aligned.
diff --git a/content/events/foss4g2021.md b/content/events/foss4g2021.md
new file mode 100644
index 0000000..ffeb02b
--- /dev/null
+++ b/content/events/foss4g2021.md
@@ -0,0 +1,13 @@
+---
+title: FOSS4G 2021
+series: events
+date: "2021-09-27"
+eventDates: "Sept 27 - Oct 2nd 2021"
+tags: ["events", "foss4g"]
+type: event
+featured: false
+eventLink: https://2021.foss4g.org/
+videosLink: https://www.youtube.com/watch?v=I6EU7s-kVNQ&list=PLqa06jy1NEM3PI3eQGemUgEmKS5oHAw7B
+location: "Virtual Buenos Aires (Online)"
+image: "https://2021.foss4g.org/images/logo_chico.svg"
+---
diff --git a/content/events/foss4g2022.md b/content/events/foss4g2022.md
new file mode 100644
index 0000000..4294c7f
--- /dev/null
+++ b/content/events/foss4g2022.md
@@ -0,0 +1,12 @@
+---
+title: FOSS4G 2022
+series: events
+date: "2021-08-22"
+eventDates: "2022 Aug 22nd To Aug 28th"
+tags: ["events", "foss4g"]
+type: event
+featured: true
+eventLink: https://2022.foss4g.org/
+location: "Firenze, Italy"
+image: "https://2022.foss4g.org/img/logo/logo-dark.png"
+---
diff --git a/content/events/past.md b/content/events/past.md
index 2cc4d4e..8af074b 100644
--- a/content/events/past.md
+++ b/content/events/past.md
@@ -4,33 +4,9 @@ series: events
tags: ["events"]
author: Regina Obe
thumbnail: event.png
-date: "2021-11-18"
-link: https://info.crunchydata.com/en/postgis-day-2021
+type: event
---
-<div style="text-align:left;">
- <a href="https://info.crunchydata.com/en/postgis-day-2021"><b>Virtual PostGIS Day 2021</b> <img src="https://info.crunchydata.com/hs-fs/hubfs/Logo-16.png?width=1692&name=Logo-16.png" alt="PostGIS Day 2021 Online conference" style="height:100px;align-content: left"><br />Thursday, November 18, 2021, Online Conference</a>
-</div>
-<br />
-
-<div style="text-align:left;">
- <a href="https://2021.foss4g.org/"><b>FOSS4G 2021</b> <img src="https://2021.foss4g.org/images/logo_chico.svg" alt="FOSS4G 2021 Buenos Aires" style="height:100px;align-content: left"><br />Sept 27 - Oct 2nd 2021, Virtual Conference Online</a> <a href="https://www.youtube.com/watch?v=I6EU7s-kVNQ&list=PLqa06jy1NEM3PI3eQGemUgEmKS5oHAw7B">Videos</a>
-</div>
-<br />
-
-<div style="text-align:left;">
- <a href="https://www.postgresvision.com/"><br />PostgresVision 2021</a><br />JUNE 22-23, 2021 ONLINE<a href="https://www.postgresvision.com/2021/session-videos/">Videos</a>
-</div>
-<br />
-<div style="text-align:left;">
- <a href="https://info.crunchydata.com/en/postgis-day-2020-crunchy-data"><b>Virtual PostGIS Day 2020 Conference</b> <img src="https://info.crunchydata.com/hubfs/PostGIS%20Day%202020-05.png" alt="PostGIS Day 2020 Crunchdata" style="height:100px;align-content: left"><br />Thursday November 19 2020</a> <a href="https://www.youtube.com/playlist?list=PLesw5jpZchufVkPcwGYpiiijThFcPNlz_" target="blank">Videos</a>
-</div>
-<br />
-<div style="text-align:left;">
- <a href="https://www.pgcon.org/2020/"><br />PGCon 2020</a><br />May 26-29 2020, Ottawa, ON, Canada</a> CHANGED TO
- ONLINE
-</div>
-<br />
<div style="text-align:left;width:250px;vertical-align: middle">
<a href="https://info.crunchydata.com/postgis-day-by-crunchy-data">PostGIS Day 2019 St. Louis</a> <a href="https://info.crunchydata.com/stl-postgis-day-2019-presentations" target="_blank">Videos</a><br />Nov 14 2019, St. Louis, MO, USA
</div>
diff --git a/content/events/pgcon2020.md b/content/events/pgcon2020.md
new file mode 100644
index 0000000..29c8d3c
--- /dev/null
+++ b/content/events/pgcon2020.md
@@ -0,0 +1,13 @@
+---
+title: PGCon 2020
+series: events
+date: "2020-05-26"
+eventDates: "May 26-29 2020"
+tags: ["events", "pgcon"]
+type: event
+featured: false
+eventLink: https://www.pgcon.org/2020/
+videosLink: https://www.youtube.com/playlist?list=PLuJmmKtsV1dP8IGGH6Z_sYQKxfDqtoSLj
+location: "Online"
+---
+
diff --git a/content/events/postgisday2020.md b/content/events/postgisday2020.md
new file mode 100644
index 0000000..f20f1c2
--- /dev/null
+++ b/content/events/postgisday2020.md
@@ -0,0 +1,13 @@
+---
+title: Virtual PostGIS Day 2020
+series: events
+date: "2020-11-18"
+eventDates: "2020 November 18th"
+tags: ["events", "postgisday"]
+type: event
+featured: false
+eventLink: https://info.crunchydata.com/en/postgis-day-2020-crunchy-data
+videosLink: https://www.youtube.com/playlist?list=PLesw5jpZchufVkPcwGYpiiijThFcPNlz_
+location: "Online"
+image: "https://info.crunchydata.com/hubfs/PostGIS%20Day%202020-05.png"
+---
diff --git a/content/events/postgisday2021.md b/content/events/postgisday2021.md
new file mode 100644
index 0000000..ddaec79
--- /dev/null
+++ b/content/events/postgisday2021.md
@@ -0,0 +1,13 @@
+---
+title: Virtual PostGIS Day 2021
+series: events
+date: "2021-11-18"
+eventDates: "2021 November 18th"
+tags: ["events", "postgisday"]
+type: event
+featured: false
+eventLink: https://info.crunchydata.com/en/postgis-day-2021
+videosLink: https://www.youtube.com/playlist?list=PLesw5jpZchudjKjwvFks-gAbz9ZZzysFm
+location: "Online"
+image: "https://info.crunchydata.com/hs-fs/hubfs/Logo-16.png?width=1692&name=Logo-16.png"
+---
diff --git a/content/events/postgresvision2021.md b/content/events/postgresvision2021.md
new file mode 100644
index 0000000..11c9e6d
--- /dev/null
+++ b/content/events/postgresvision2021.md
@@ -0,0 +1,12 @@
+---
+title: PostgresVision 2021
+series: events
+date: "2021-11-18"
+eventDates: "JUNE 22-23, 2021"
+tags: ["events", "postgresvision"]
+type: event
+featured: false
+eventLink: https://www.postgresvision.com/
+videosLink: https://www.postgresvision.com/2021/session-videos/
+location: "Online"
+---
diff --git a/content/events/upcoming.md b/content/events/upcoming.md
deleted file mode 100644
index 0a9738d..0000000
--- a/content/events/upcoming.md
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: 1 Upcoming Events
-series: events
-date: "2021-08-22"
-tags: ["events"]
----
-
-<div style="text-align:center;">
- <a href="https://2022.foss4g.org/"><b>FOSS4G 2022</b> <img src="https://2022.foss4g.org/img/logo/logo-dark.png" alt="FOSS4G 2022 Firenze, Italy" style="height:100px;align-content: center"><br />August 22 - August 28th 2022</a>
-</div>
-<br />
diff --git a/layouts/events/single.html b/layouts/events/single.html
index c75d639..124cb64 100644
--- a/layouts/events/single.html
+++ b/layouts/events/single.html
@@ -1,23 +1,3 @@
-{{- define "main" }}
-{{- $s := .Site.Params }}
-{{- $p := .Params }}
-{{- $scratch := newScratch }}
-{{- if isset $p "image" }}
- {{- $scratch.Set "image" $p.image }}
-{{- else }}
- {{ $scratch.Set "image" $s.fallBackOgImage }}
-{{- end }}
-{{- $image := $scratch.Get "image" }}
-{{- $bg := absLangURL (path.Join "images" $image) }}
-<div class="wrap content">
- <article class="post_content">
- {{- $t := .Title }}
- <h1 class="post_title">{{ $t }}</h1>
-
- <div class="post_body">
- {{- .Content }}
- </div>
-
- </article>
-</div>
-{{- end }}
+{{ define "main" }}
+ {{- partial "event" . }}
+{{ end }}
diff --git a/layouts/partials/event.html b/layouts/partials/event.html
new file mode 100644
index 0000000..6b2f0d7
--- /dev/null
+++ b/layouts/partials/event.html
@@ -0,0 +1,10 @@
+<div class="post_item">
+ <div class="pale">
+ <a href="{{.Params.eventLink}}">{{- if .Params.image}}<img src="{{.Params.image}}" alt="{{.Title}}" style="height:75px" /><br />{{ end }}
+ <b>{{.Title}}</b><br />
+ {{- if .Params.eventDates }} {{.Params.eventDates}}<br />{{ end }}
+ {{- if .Params.location }} ,{{.Params.location}}<br />{{ end }}</a>
+ {{- if .Params.videosLink }}<a class="post_tag button button_translucent" href="{{.Params.videosLink}}">Videos</a><br />{{ end }}
+ {{.Content}}
+ </div>
+</div>
diff --git a/layouts/partials/events.html b/layouts/partials/events.html
deleted file mode 100644
index ddd166e..0000000
--- a/layouts/partials/events.html
+++ /dev/null
@@ -1 +0,0 @@
-<h1>{{ with .Site.GetPage "section" "events" }}{{ .Title }}{{ end }}</h1>
diff --git a/layouts/partials/sidehome.html b/layouts/partials/sidehome.html
index 669b13f..120e06f 100644
--- a/layouts/partials/sidehome.html
+++ b/layouts/partials/sidehome.html
@@ -36,13 +36,16 @@
{{- end }}
</ul>
{{- end }}
- <h2 class="mt-4">Events</h2>
- {{ range where .Site.RegularPages ".Params.series" "eq" ("events") }}
- <div class="flex-column">
- {{ partial "post-meta" . }}
- {{ .Content }}
- </div>
- {{end }}
+ {{$events := where .Site.RegularPages "Params.series" "eq" ("events") }}
+ <h2 class="mt-4">Upcoming Events</h2>
+ {{ range where $events "Params.featured" true }}
+ {{ partial "event" . }}
+ {{end }}
+
+ <h2 class="mt-4">Past Events</h2>
+ {{ range first 5 (where $events "Params.featured" "ne" true) }}
+ {{ partial "event" . }}
+ {{end }}
<div class="flex-column wrap">
<h2 class="post_related">Tips</h2>
-----------------------------------------------------------------------
Summary of changes:
archetypes/event.md | 3 +++
config/_default/config.toml | 3 ++-
config/_default/params.toml | 4 ++--
content/events/foss4g2021.md | 13 +++++++++++++
content/events/foss4g2022.md | 12 ++++++++++++
content/events/past.md | 26 +-------------------------
content/events/pgcon2020.md | 13 +++++++++++++
content/events/postgisday2020.md | 13 +++++++++++++
content/events/postgisday2021.md | 13 +++++++++++++
content/events/postgresvision2021.md | 12 ++++++++++++
content/events/upcoming.md | 11 -----------
layouts/events/single.html | 26 +++-----------------------
layouts/partials/event.html | 10 ++++++++++
layouts/partials/events.html | 1 -
layouts/partials/sidehome.html | 17 ++++++++++-------
15 files changed, 107 insertions(+), 70 deletions(-)
create mode 100644 content/events/foss4g2021.md
create mode 100644 content/events/foss4g2022.md
create mode 100644 content/events/pgcon2020.md
create mode 100644 content/events/postgisday2020.md
create mode 100644 content/events/postgisday2021.md
create mode 100644 content/events/postgresvision2021.md
delete mode 100644 content/events/upcoming.md
create mode 100644 layouts/partials/event.html
delete mode 100644 layouts/partials/events.html
hooks/post-receive
--
postgis.net
More information about the postgis-tickets
mailing list