[postgis-tickets] [SCM] postgis.net branch hugo updated. 3feffae772dabaa73ca05b4b36480291be753813

git at osgeo.org git at osgeo.org
Sat Mar 5 03:07:05 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  3feffae772dabaa73ca05b4b36480291be753813 (commit)
      from  d9e7c97c998212ccdef5c1ad1a2f1e8e92bf7191 (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 3feffae772dabaa73ca05b4b36480291be753813
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Mar 5 06:07:00 2022 -0500

    Show event tags on event full page

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 8680e12..cf9e139 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -15,6 +15,18 @@
 		<a href="{{.Site.Params.gitRepo}}/{{ .File.Path }}" class="post_tag button button_translucent">Edit this page</a>
 		{{if eq $p.category "events"}}
 		{{- partial "event" . }}
+		{{- with .Params.tags -}}
+    <span>
+      {{- if ($scratch.Get "writeSeparator") }} · {{ end }}
+      {{- range . }}
+        {{- $tag := urlize . -}}
+        <a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}" class="post_tag button button_translucent">
+          {{- . }}
+        </a>
+      {{- end }}
+    </span>
+    {{- $scratch.Set "writeSeparator" true }}
+  {{- end }}
 		{{ else }}
     {{- $t := .Title }}
     <h1 class="post_title">{{ $t }}</h1>

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

Summary of changes:
 layouts/_default/single.html | 12 ++++++++++++
 1 file changed, 12 insertions(+)


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list