[postgis-tickets] [SCM] postgis.net branch hugo updated. 4b85e7cf0b084cd4bbfcd2ba7beeebb812fbb3a9

git at osgeo.org git at osgeo.org
Sun Feb 27 17:11:51 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  4b85e7cf0b084cd4bbfcd2ba7beeebb812fbb3a9 (commit)
      from  c7236831faac5ff0f786357b0221bde1ef243e32 (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 4b85e7cf0b084cd4bbfcd2ba7beeebb812fbb3a9
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Feb 27 20:11:46 2022 -0500

    Get rid of use of Path.Clean, debbie's hugo version doesn't support it

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 745359d..e2375ad 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}}/{{ path.Clean .File.Path }}" class="post_tag button button_translucent">Edit this page</a>
+		<a href="{{.Site.Params.gitRepo}}/{{ .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/pages/single.html b/layouts/pages/single.html
index b385031..be2b348 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}}/{{ path.Clean .File.Path }}" class="button">Edit this page</a>
+	<a href="{{.Site.Params.gitRepo}}/{{ .File.Path }}" class="button">Edit this page</a>
   <article class="post_content">
     {{- $t := .Title }}
     {{- partial "page-meta" . }}

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

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


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list