[postgis-tickets] [SCM] postgis.net branch hugo updated. c7236831faac5ff0f786357b0221bde1ef243e32

git at osgeo.org git at osgeo.org
Sun Feb 27 17:00:58 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  c7236831faac5ff0f786357b0221bde1ef243e32 (commit)
      from  3947b9c2f40600f0f3dba83f0ff89acf95826071 (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 c7236831faac5ff0f786357b0221bde1ef243e32
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Feb 27 20:00:53 2022 -0500

    Fix edit page url so works both on Linux and Windows

diff --git a/config/_default/params.toml b/config/_default/params.toml
index bbc6691..e1cc27c 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -6,7 +6,7 @@ largeTwitterCard = true # set to true if you want to show a large twitter card i
 introDescription = "PostGIS provides spatial objects for the PostgreSQL database, allowing storage and query of information about location and mapping."
 introURL = "/" # set the url for the 'read more' button below the introDescription, or set to false to not show the button
 
-gitRepo = "https://git.osgeo.org/gitea/postgis/postgis.net/src/branch/hugo/"
+gitRepo = "https://git.osgeo.org/gitea/postgis/postgis.net/src/branch/hugo/content"
 
 # showShare = false # Uncomment to not show share buttons on each post. Also available in each post's front matter.
 
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9d72aed..745359d 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -15,7 +15,7 @@
 		{{- partial "event" . }}
 	{{ else }}
   <article class="post_content">
-		<a href="{{.Site.Params.gitRepo}}/{{.File.Path}}" class="post_tag button button_translucent">Edit this page</a>
+		<a href="{{.Site.Params.gitRepo}}/{{ path.Clean .File.Path }}" class="post_tag button button_translucent">Edit this page</a>
     {{- $t := .Title }}
     <h1 class="post_title">{{ $t }}</h1>
     {{- partial "post-meta" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 4fb5cf4..9f5afb7 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,7 +14,7 @@
 
   <article class="post_content">
     {{- $t := .Title }}
-		<a href="{{.Site.Params.gitRepo}}/content/{{.File.BaseFileName}}.md" class="post_tag button button_translucent">Edit this page</a>
+		<a href="{{.Site.Params.gitRepo}}/{{ path.Clean .File.Path }}" class="post_tag button button_translucent">Edit this page</a>
     <h1 class="post_title">{{ $t }}</h1>
     {{- partial "page-meta" . }}
     {{- partial "image-feature" . }}
diff --git a/layouts/pages/single.html b/layouts/pages/single.html
index bde551a..b385031 100644
--- a/layouts/pages/single.html
+++ b/layouts/pages/single.html
@@ -10,7 +10,7 @@
 {{- $image := $scratch.Get "image" }}
 {{- $bg := absLangURL (path.Join "images" $image) }}
 <div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
-	<a href="{{.Site.Params.gitRepo}}/content/pages/{{.File.BaseFileName}}.md" class="button">Edit this page</a>
+	<a href="{{.Site.Params.gitRepo}}/{{ path.Clean .File.Path }}" class="button">Edit this page</a>
   <article class="post_content">
     {{- $t := .Title }}
     {{- partial "page-meta" . }}

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

Summary of changes:
 config/_default/params.toml  | 2 +-
 layouts/_default/single.html | 2 +-
 layouts/index.html           | 2 +-
 layouts/pages/single.html    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list