[SCM] postgis.net branch website updated. clarity-final-198-gc8a8bcc

git at osgeo.org git at osgeo.org
Sun Jul 19 06:32:17 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  c8a8bcc0e90429c103fcd6e88faf034a8d749f38 (commit)
       via  007210b53dc4507d43e151e9ba6ced5d58052261 (commit)
      from  217dee2563abf6d7a647eaf284772dd3ce81ca4f (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 c8a8bcc0e90429c103fcd6e88faf034a8d749f38
Merge: 217dee2 007210b
Author: Darafei Praliaskouski <komzpa at gmail.com>
Date:   Sun Jul 19 06:32:16 2026 -0700

    Merge pull request 'Fix developer docs navigation, links, and previews' (!10) from Komzpa/postgis.net:fix/developer-docs-feedback into website
    
    Reviewed-on: https://gitea.osgeo.org/postgis/postgis.net/pulls/10


commit 007210b53dc4507d43e151e9ba6ced5d58052261
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Sun Jul 19 16:06:28 2026 +0400

    fix: polish developer docs publishing

diff --git a/config.toml b/config.toml
index f0d2e8e..db12e54 100644
--- a/config.toml
+++ b/config.toml
@@ -39,6 +39,9 @@ enableRobotsTXT = true
 
 [params]
 
+  # Default image used by Open Graph and Twitter link previews.
+  images = ["/postgis-logo-horizontal.png"]
+
   # (Optional, default 6) Set how many table of contents levels to be showed on page.
   # Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
   # You can also specify this parameter per page in front matter.
diff --git a/content/development/developer_docs.md b/content/documentation/developer_docs.md
similarity index 82%
rename from content/development/developer_docs.md
rename to content/documentation/developer_docs.md
index 2b41810..1700ecc 100644
--- a/content/development/developer_docs.md
+++ b/content/documentation/developer_docs.md
@@ -4,6 +4,9 @@ date: 2024-03-13
 weight: 110
 geekdocHidden: false
 layout: toplevel
+description: Development guides, CI status, source documentation, and maintainer references.
+aliases:
+  - /development/developer_docs/
 ---
 
 * [PostGIS Developer Documentation](/development/docs/)
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
new file mode 100644
index 0000000..6ae65ae
--- /dev/null
+++ b/layouts/_default/_markup/render-link.html
@@ -0,0 +1,29 @@
+{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
+{{- $code := hasPrefix .Text "<code" -}}
+{{- $destination := .Destination -}}
+{{- $path := replaceRE `([?#].*)$` "" $destination -}}
+{{- $suffix := strings.TrimPrefix $path $destination -}}
+{{- $remote := or (hasPrefix $path "http://") (hasPrefix $path "https://") -}}
+
+{{- if and (strings.HasSuffix $path ".md") (not $remote) -}}
+  {{- $target := .Page.GetPage $path -}}
+  {{- if and (not $target) (eq (path.Base $path) "README.md") -}}
+    {{- $target = .Page.GetPage (path.Join (path.Dir $path) "_index.md") -}}
+  {{- end -}}
+  {{- with $target -}}
+    {{- $destination = printf "%s%s" .RelPermalink $suffix -}}
+  {{- end -}}
+{{- end -}}
+
+<a
+  class="gdoc-markdown__link{{ if $raw -}}
+    --raw
+  {{- else if $code -}}
+    --code
+  {{- end }}"
+  href="{{ $destination | safeURL }}"
+  {{- with .Title }}{{ printf "title=\"%s\"" . | safeHTMLAttr }}{{- end }}
+>
+  {{- .Text | safeHTML -}}
+</a>
+{{- /* Drop trailing newlines */ -}}

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

Summary of changes:
 config.toml                                        |  3 +++
 .../developer_docs.md                              |  3 +++
 layouts/_default/_markup/render-link.html          | 29 ++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 rename content/{development => documentation}/developer_docs.md (82%)
 create mode 100644 layouts/_default/_markup/render-link.html


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list