[SCM] postgis.net branch website updated. clarity-final-248-g82c4b44
git at osgeo.org
git at osgeo.org
Wed Aug 12 02:03:04 PDT 2026
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, website has been updated
via 82c4b4460c535bb466bf2c66c44f0c6a775d82ba (commit)
via 03577d1a77bb54dca2537d500766ae3621aed1a9 (commit)
from 9f305925e4082abfad62a647f91d95f67cfd8be6 (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 82c4b4460c535bb466bf2c66c44f0c6a775d82ba
Merge: 9f30592 03577d1
Author: Darafei Praliaskouski <komzpa at gmail.com>
Date: Wed Aug 12 02:03:02 2026 -0700
Merge pull request 'Fix Hugo layout data API deprecations' (!31) from Komzpa/postgis.net:fix/trac-5896-hugo-compat-20260812 into website
Reviewed-on: https://gitea.osgeo.org/postgis/postgis.net/pulls/31
commit 03577d1a77bb54dca2537d500766ae3621aed1a9
Author: Darafei Praliaskouski <me at komzpa.net>
Date: Wed Aug 12 12:39:24 2026 +0400
fix: update Hugo layout data APIs
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 567a148..e7fe0d0 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -17,7 +17,7 @@
<title>{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content on {{ .Site.Title }}</description>
- <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
+ <generator>Hugo -- gohugo.io</generator>{{ with .Site.Language.Locale }}
<language>{{.}}</language>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
new file mode 100644
index 0000000..0cd9207
--- /dev/null
+++ b/layouts/partials/foot.html
@@ -0,0 +1,6 @@
+{{ if default true .Site.Params.GeekdocSearch }}
+ <script defer src="{{ index (index hugo.Data.assets "search.js") "src" | relURL }}"></script>
+ {{- $searchConfigFile := printf "search/%s.config.json" .Language.Lang -}}
+ {{- $searchConfig := resources.Get "search/config.json" | resources.ExecuteAsTemplate $searchConfigFile . | resources.Minify -}}
+ {{- $searchConfig.Publish -}}
+{{ end }}
diff --git a/layouts/partials/head/others.html b/layouts/partials/head/others.html
new file mode 100644
index 0000000..803f179
--- /dev/null
+++ b/layouts/partials/head/others.html
@@ -0,0 +1,73 @@
+{{- if default true .Site.Params.GeekdocDarkModeToggle }}
+ <script src="{{ index (index hugo.Data.assets "colortheme.js") "src" | relURL }}"></script>
+{{- end }}
+<script src="{{ index (index hugo.Data.assets "main.js") "src" | relURL }}"></script>
+
+<link
+ rel="preload"
+ as="font"
+ href="{{ "fonts/Metropolis.woff2" | relURL }}"
+ type="font/woff2"
+ crossorigin="anonymous"
+/>
+<link
+ rel="preload"
+ as="font"
+ href="{{ "fonts/LiberationSans.woff2" | relURL }}"
+ type="font/woff2"
+ crossorigin="anonymous"
+/>
+
+<link
+ rel="preload"
+ href="{{ index (index hugo.Data.assets "main.scss") "src" | relURL }}"
+ as="style"
+/>
+<link
+ rel="stylesheet"
+ href="{{ index (index hugo.Data.assets "main.scss") "src" | relURL }}"
+ media="all"
+/>
+
+<link
+ rel="preload"
+ href="{{ index (index hugo.Data.assets "mobile.scss") "src" | relURL }}"
+ as="style"
+/>
+<link
+ rel="stylesheet"
+ href="{{ index (index hugo.Data.assets "mobile.scss") "src" | relURL }}"
+ media="screen and (max-width: 45rem)"
+/>
+
+<link
+ rel="preload"
+ href="{{ index (index hugo.Data.assets "print.scss") "src" | relURL }}"
+ as="style"
+/>
+<link
+ rel="stylesheet"
+ href="{{ index (index hugo.Data.assets "print.scss") "src" | relURL }}"
+ media="print"
+/>
+
+<link
+ rel="preload"
+ href="{{ index (index hugo.Data.assets "custom.css") "src" | relURL }}"
+ as="style"
+/>
+<link
+ rel="stylesheet"
+ href="{{ index (index hugo.Data.assets "custom.css") "src" | relURL }}"
+ media="all"
+/>
+
+{{- with .OutputFormats.Get "html" }}
+ {{ printf `<link href=%q rel=%q type=%q />` .Permalink .Rel .MediaType.Type | safeHTML }}
+{{- end }}
+
+{{- if (default false $.Site.Params.GeekdocOverwriteHTMLBase) }}
+ <base href="{{ .Site.BaseURL }}" />
+{{- end }}
+
+{{ printf "<!-- %s -->" "Made with Geekdoc theme https://github.com/thegeeklab/hugo-geekdoc" | safeHTML }}
diff --git a/layouts/partials/menu-nextprev.html b/layouts/partials/menu-nextprev.html
new file mode 100644
index 0000000..b4ef968
--- /dev/null
+++ b/layouts/partials/menu-nextprev.html
@@ -0,0 +1,78 @@
+{{ $current := . }}
+{{ $site := .Site }}
+{{ $current.Scratch.Set "prev" false }}
+{{ $current.Scratch.Set "getNext" false }}
+
+{{ $current.Scratch.Set "nextPage" false }}
+{{ $current.Scratch.Set "prevPage" false }}
+
+{{ template "menu_nextprev" dict "sect" hugo.Data.menu.main.main "current" $current "site" $site }}
+
+{{ define "menu_nextprev" }}
+ {{ $current := .current }}
+ {{ $site := .site }}
+
+ {{ range sort (default (seq 0) .sect) "weight" }}
+ {{ $current.Scratch.Set "current" $current }}
+ {{ $current.Scratch.Set "site" $site }}
+
+ {{ $ref := default false .ref }}
+ {{ if $ref }}
+ {{ $site := $current.Scratch.Get "site" }}
+ {{ $this := $site.GetPage .ref }}
+ {{ $current := $current.Scratch.Get "current" }}
+
+ {{ if reflect.IsMap .name }}
+ {{ $current.Scratch.Set "refName" (index .name $site.Language.Lang) }}
+ {{ else }}
+ {{ $current.Scratch.Set "refName" .name }}
+ {{ end }}
+ {{ $name := $current.Scratch.Get "refName" }}
+
+ {{ if $current.Scratch.Get "getNext" }}
+ {{ $current.Scratch.Set "nextPage" (dict "name" $name "this" $this) }}
+ {{ $current.Scratch.Set "getNext" false }}
+ {{ end }}
+
+ {{ if eq $current $this }}
+ {{ $current.Scratch.Set "prevPage" ($current.Scratch.Get "prev") }}
+ {{ $current.Scratch.Set "getNext" true }}
+ {{ end }}
+
+ {{ $current.Scratch.Set "prev" (dict "name" $name "this" $this) }}
+ {{ end }}
+
+ {{ $sub := default false .sub }}
+ {{ if $sub }}
+ {{ template "menu_nextprev" dict "sect" $sub "current" ($current.Scratch.Get "current") "site" ($current.Scratch.Get "site") }}
+ {{ end }}
+ {{ end }}
+{{ end }}
+
+{{ $showPrevNext := (and (default true .Site.Params.GeekdocNextPrev) .Site.Params.GeekdocMenuBundle) }}
+{{ if $showPrevNext }}
+ <span class="gdoc-page__nav">
+ {{ with ($current.Scratch.Get "prevPage") }}
+ <a
+ class="gdoc-page__nav--prev flex align-center"
+ href="{{ .this.RelPermalink }}"
+ title="{{ .name }}"
+ >
+ <i class="gdoc-icon">gdoc_arrow_left_alt</i>
+ {{ .name }}
+ </a>
+ {{ end }}
+ </span>
+ <span class="gdoc-page__nav">
+ {{ with ($current.Scratch.Get "nextPage") }}
+ <a
+ class="gdoc-page__nav--next flex align-center"
+ href="{{ .this.RelPermalink }}"
+ title="{{ .name }}"
+ >
+ {{ .name }}
+ <i class="gdoc-icon">gdoc_arrow_right_alt</i>
+ </a>
+ {{ end }}
+ </span>
+{{ end }}
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 2f56477..3949a10 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -5,7 +5,7 @@
<section class="gdoc-nav--main">
<!-- <h2>{{ i18n "nav_navigation" }}</h2> -->
{{ if .Site.Params.GeekdocMenuBundle }}
- {{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.main.main) }}
+ {{ partial "menu-bundle" (dict "current" . "source" hugo.Data.menu.main.main) }}
{{ else }}
{{ partial "menu-filetree" . }}
{{ end }}
@@ -36,9 +36,9 @@
<section class="gdoc-nav--more">
- {{ if .Site.Data.menu.more.more }}
+ {{ if hugo.Data.menu.more.more }}
<h2>{{ i18n "nav_more" }}</h2>
- {{ partial "menu-bundle" (dict "current" . "source" .Site.Data.menu.more.more) }}
+ {{ partial "menu-bundle" (dict "current" . "source" hugo.Data.menu.more.more) }}
{{ end }}
</section>
</nav>
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 7c49fa8..a022c23 100644
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -26,8 +26,8 @@
</div>
<div class="gdoc-menu-header">
<span class="gdoc-menu-header__items">
- {{ if .Root.Site.Data.menu.extra.header }}
- {{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }}
+ {{ if hugo.Data.menu.extra.header }}
+ {{ partial "menu-extra" (dict "current" .Root "source" hugo.Data.menu.extra.header "target" "header") }}
{{ end }}
-----------------------------------------------------------------------
Summary of changes:
layouts/_default/rss.xml | 2 +-
.../layouts => layouts}/partials/foot.html | 2 +-
.../layouts => layouts}/partials/head/others.html | 20 ++++++++++----------
.../layouts => layouts}/partials/menu-nextprev.html | 2 +-
layouts/partials/menu.html | 6 +++---
layouts/partials/site-header.html | 4 ++--
6 files changed, 18 insertions(+), 18 deletions(-)
copy {themes/hugo-geekdoc/layouts => layouts}/partials/foot.html (75%)
copy {themes/hugo-geekdoc/layouts => layouts}/partials/head/others.html (59%)
copy {themes/hugo-geekdoc/layouts => layouts}/partials/menu-nextprev.html (95%)
hooks/post-receive
--
postgis.net
More information about the postgis-tickets
mailing list