[postgis-tickets] [SCM] postgis.net branch hugo updated. 6fe0f010803231bcbf2a620d4920e8bc2a7978a4

git at osgeo.org git at osgeo.org
Fri Feb 25 22:37:10 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  6fe0f010803231bcbf2a620d4920e8bc2a7978a4 (commit)
      from  69307dbce87e87b1bd78985498dd4bdce41a7f21 (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 6fe0f010803231bcbf2a620d4920e8bc2a7978a4
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Feb 26 01:37:04 2022 -0500

    Fiddling with layout

diff --git a/config/_default/params.toml b/config/_default/params.toml
index 5714005..834c468 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -81,10 +81,10 @@ languageMenuName = "🌐"
 # utterancesIssueTerm = "pathname" # Default: pathname
 
 # Maximum number of recent posts.
-# numberOfRecentPosts = 8
+numberOfRecentPosts = 4
 
 # Maximum number of featured posts.
-# numberOfFeaturedPosts = 8
+numberOfFeaturedPosts = 4
 
 # Date format. Checkout https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference for details.
 # dateFormat = "2006-01-02" # Default to "Jan 2, 2006".
diff --git a/content/_index.md b/content/_index.md
index 2540a17..29f049c 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -3,8 +3,10 @@ title: About PostGIS
 description: PostGIS provides spatial objects for the PostgreSQL database, allowing storage and query of information about location and mapping.
 date: 2022-02-20
 draft: false
-sidebar: true
+relatedInSidebar: false
+recentPosts: false
 ---
+
 <span itemscope itemtype="http://www.schema.org/SoftwareApplication">
 <span itemprop="about">
 <span itemprop="name">PostGIS</span> is a  <span itemprop="applicationSubCategory">spatial</span> <span itemprop="applicationCategory">database</span> extender for [<span itemprop="requirements">PostgreSQL</span>][1] object-relational database.  It adds support for geographic objects allowing location queries to be run in SQL. </span>
@@ -25,16 +27,16 @@ WHERE city.name = 'Gotham';
 {{< / highlight >}}
 
 
-[Docs for latest stable release]({{pcurl('docs')}}/)
+[Docs for latest stable release](/docs/)
 
 In addition to basic location awareness, PostGIS offers many features rarely found in other competing spatial databases
-such as Oracle Locator/Spatial and SQL Server. Refer to [PostGIS Feature List]({{ pcurl('features') }}) for more details.
+such as Oracle Locator/Spatial and SQL Server. Refer to [PostGIS Feature List](/features/) for more details.
 </span>
 
 # Should you upgrade now?
 
 Not sure if you are running the best possible PostGIS for your PostgreSQL?
-Refer to our [Version compatibility and EOL Policy]{{/eol_policy}}).
+Refer to our [Version compatibility and EOL Policy](/eol_policy/).
 
 # License
 <span>
diff --git a/content/events/past.md b/content/events/past.md
index d40336d..42422c7 100644
--- a/content/events/past.md
+++ b/content/events/past.md
@@ -1,46 +1,46 @@
----
-title: Recent Past Events
-series: events
-tags: ["events"]
-author: Regina Obe
-thumbnail: event.png
-date: "2021-11-18"
-link: https://info.crunchydata.com/en/postgis-day-2021
----
-
-<div style="text-align:center;">
-	<a href="https://info.crunchydata.com/en/postgis-day-2021"><b>Virtual PostGIS Day 2021</b> <img src="https://info.crunchydata.com/en/postgis-day-2021" alt="PostGIS Day 2021 Online conference" style="height:100px;align-content: center"><br />Thursday, November 18, 2021, Online Conference</a>
-</div>
-<br />
-
-<div style="text-align:center;">
-	<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: center"><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:center;">
-	<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:center;">
-	<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: center"><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:center;">
-	<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:center;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>
-<div style="text-align:center;width:250px;vertical-align: middle">
-	<a href="https://www.postgresql.eu/events/pgconfeu2019/schedule/"><img src="https://2019.pgconf.eu/static/a85ca83/img/logo2019.png" alt="PGConf EU, Milan Italy" style="height:100px;align-content: center"><br />PGConf EU 2019</a><br />Oct 15-18 2019, Milan, Italy
-</div>
-<br />
-<div style="text-align:center;width:250px;vertical-align: middle">
-	<a href="https://2019.postgresopen.org/"><img src="https://2019.postgresopen.org/static/47957f3/images/logo.png" alt="PostgresOpen 2019 Orlando, FL, USA" style="height:100px;align-content: center"><br />PostgresOpen 2019</a><br />Sept 11-13 2019, Orlando, FL, USA
-</div>
-<div style="text-align:center;">
-	<a href="https://2019.foss4g.org/"><img src="https://2019.foss4g.org/wp-content/uploads/2018/07/logo-site.png" alt="FOSS4G 2019 International Conference" width="200"><br />FOSS4G 2019</a>  <a href="https://media.ccc.de/c/foss4g2019/">Videos</a><br />August 26-30 2019, Bucharest, Romania
-</div>
\ No newline at end of file
+---
+title: 2 Recent Past Events
+series: events
+tags: ["events"]
+author: Regina Obe
+thumbnail: event.png
+date: "2021-11-18"
+link: https://info.crunchydata.com/en/postgis-day-2021
+---
+
+<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/en/postgis-day-2021" 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>
+<div style="text-align:left;width:250px;vertical-align: middle">
+	<a href="https://www.postgresql.eu/events/pgconfeu2019/schedule/"><img src="https://2019.pgconf.eu/static/a85ca83/img/logo2019.png" alt="PGConf EU, Milan Italy" style="height:100px;align-content: left"><br />PGConf EU 2019</a><br />Oct 15-18 2019, Milan, Italy
+</div>
+<br />
+<div style="text-align:left;width:250px;vertical-align: middle">
+	<a href="https://2019.postgresopen.org/"><img src="https://2019.postgresopen.org/static/47957f3/images/logo.png" alt="PostgresOpen 2019 Orlando, FL, USA" style="height:100px;align-content: left"><br />PostgresOpen 2019</a><br />Sept 11-13 2019, Orlando, FL, USA
+</div>
+<div style="text-align:left;">
+	<a href="https://2019.foss4g.org/"><img src="https://2019.foss4g.org/wp-content/uploads/2018/07/logo-site.png" alt="FOSS4G 2019 International Conference" width="200"><br />FOSS4G 2019</a>  <a href="https://media.ccc.de/c/foss4g2019/">Videos</a><br />August 26-30 2019, Bucharest, Romania
+</div>
diff --git a/content/events/upcoming.md b/content/events/upcoming.md
index a18a2cc..0a9738d 100644
--- a/content/events/upcoming.md
+++ b/content/events/upcoming.md
@@ -1,8 +1,8 @@
 ---
-title: Upcoming Events
+title: 1 Upcoming Events
 series: events
-date: "2022-08-22"
-tags: ["event"]
+date: "2021-08-22"
+tags: ["events"]
 ---
 
 <div style="text-align:center;">
diff --git a/layouts/index.html b/layouts/index.html
index b53336f..dc11e62 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,7 +13,7 @@
   <article class="post_content">
     {{- $t := .Title }}
     <h1 class="post_title">{{ $t }}</h1>
-    {{- partial "page-meta" . }}
+    {{- partial "post-meta" . }}
     {{- partial "image-feature" . }}
     {{ if $p.toc }}
     <div class="post_toc">
@@ -25,8 +25,26 @@
       {{- .Content }}
     </div>
 
+    {{- $showRelatedInArticle := true }}
+    {{- if eq $s.showRelatedInArticle false }}
+      {{- $showRelatedInArticle = false }}
+    {{- else if eq $p.showRelatedInArticle false }}
+      {{- $showRelatedInArticle = false }}
+    {{- end }}
+    {{- if ne $showRelatedInArticle false }}
+      {{- partial "related" . }}
+    {{- end }}
 
-    {{- partial "news" . }}
+    {{- $showComments := true }}
+    {{- if eq $s.comments false }}
+      {{- $showComments = false }}
+    {{- else if eq $p.comments false }}
+      {{- $showComments = false }}
+    {{- end }}
+    {{- if ne $showComments false }}
+      {{- partial "comments" . }}
+    {{- end }}
+    {{- partial "i18nlist" . }}
 
   </article>
   {{- if ( ne $p.sidebar false ) }}
diff --git a/layouts/partials/sidehome.html b/layouts/partials/sidehome.html
index 3ad34cb..757d4db 100644
--- a/layouts/partials/sidehome.html
+++ b/layouts/partials/sidehome.html
@@ -1,22 +1,48 @@
 {{ $s := site.Params }}
 <aside class="sidebar">
   <section class="sidebar_inner">
-    {{- $introDescription := $s.introDescription }}
-    {{- with .Params.introDescription }}
-      {{- $introDescription = . }}
-    {{- end }}
-
-
+    {{ if .Site.Params.sidebardisclaimer }}
+      <div class="sidebardisclaimer">
+        <h2 class="mt-4">Disclaimer</h2>
+        {{ .Site.Params.disclaimerText }}
+      </div>
+    {{ end }}
 
     {{- $relatedInSidebar := true }}
     {{- if eq $s.showRelatedInSidebar false }}
       {{ $relatedInSidebar = false }}
     {{- end }}
-
+    {{ if (and ($relatedInSidebar) (isset .Params "series") ) }}
+      {{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
+	    <h2 class="mt-4">{{ T "series_posts" }}</h2>
+      <ul>
+        {{ range $related }}
+        <li>
+          <a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a>
+        </li>
+        {{ end }}
+      </ul>
+    {{ end }}
 
     {{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.mainSections }}
-
-		{{- partial "tips" . }}
+    {{- $featured := default 8 $s.numberOfFeaturedPosts }}
+    {{- with first $featured (where $posts "Params.featured" true)}}
+    <h2 class="mt-4">{{ T "featured_posts" }}</h2>
+    <ul>
+      {{- range . }}
+      <li>
+        <a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a>
+      </li>
+      {{- 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 }}
     {{- $tagsLimit := (default 100 $s.numberOfTagsShown) }}
     {{- range $key, $value := .Site.Taxonomies }}
     {{- if gt $value 0 }}

-----------------------------------------------------------------------

Summary of changes:
 config/_default/params.toml    |  4 +-
 content/_index.md              | 10 +++--
 content/events/past.md         | 92 +++++++++++++++++++++---------------------
 content/events/upcoming.md     |  6 +--
 layouts/index.html             | 22 +++++++++-
 layouts/partials/sidehome.html | 44 +++++++++++++++-----
 6 files changed, 112 insertions(+), 66 deletions(-)


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list