[postgis-tickets] [SCM] postgis.net branch hugo updated. 3947b9c2f40600f0f3dba83f0ff89acf95826071
git at osgeo.org
git at osgeo.org
Sun Feb 27 16:40:35 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 3947b9c2f40600f0f3dba83f0ff89acf95826071 (commit)
from 99134565227bb296c95f7fe64307a889aa3cacd8 (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 3947b9c2f40600f0f3dba83f0ff89acf95826071
Author: Regina Obe <lr at pcorp.us>
Date: Sun Feb 27 19:40:30 2022 -0500
Get rid of all social links except rss and add an Edit this page link
diff --git a/config/_default/menus/menu.en.toml b/config/_default/menus/menu.en.toml
index a7482a5..b9d1707 100644
--- a/config/_default/menus/menu.en.toml
+++ b/config/_default/menus/menu.en.toml
@@ -29,31 +29,33 @@
name = "rss"
weight = 1
url = "index.xml"
-[[social]]
- name = "twitter"
- weight = 2
- url = "https://twitter.com/postgis"
-[[social]]
- name = "stackoverflow"
- url = "https://stackoverflow.com/questions/tagged/postgis"
- weight = 3
+# [[social]]
+# name = "twitter"
+# weight = 2
+# url = "https://twitter.com/postgis"
-[[social]]
- name = "gitea"
- type = "social"
- weight = 4
- url = "https://git.osgeo.org/gitea/postgis/postgis.git"
+# [[social]]
+# name = "stackoverflow"
+# url = "https://stackoverflow.com/questions/tagged/postgis"
+# weight = 3
-[[social]]
- name = "github"
- type = "social"
- weight = 5
- url = "https://github.com/postgis"
-[[social]]
- name = "gitlab"
- type = "social"
- weight = 6
- url = "https://gitlab.com/postgis"
+# [[social]]
+# name = "gitea"
+# type = "social"
+# weight = 4
+# url = "https://git.osgeo.org/gitea/postgis/postgis.git"
+
+# [[social]]
+# name = "github"
+# type = "social"
+# weight = 5
+# url = "https://github.com/postgis"
+
+# [[social]]
+# name = "gitlab"
+# type = "social"
+# weight = 6
+# url = "https://gitlab.com/postgis"
diff --git a/config/_default/params.toml b/config/_default/params.toml
index baa6b3a..bbc6691 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -2,10 +2,12 @@ twitter = "@postgis"
description = "PostGIS provides spatial objects for the PostgreSQL database, allowing storage and query of information about location and mapping."
keywords = ["postgis", "database", "spatial", "sql", "mapping", "queries", "gis", "geocoding", "routing", "raster", "opensource gis"]
enableRobotsTXT = false
-largeTwitterCard = false # set to true if you want to show a large twitter card image. The default is a small twitter card image
+largeTwitterCard = true # set to true if you want to show a large twitter card image. The default is a small twitter card image
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/"
+
# showShare = false # Uncomment to not show share buttons on each post. Also available in each post's front matter.
# Google analytics Id
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 397d63e..9d72aed 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -9,11 +9,13 @@
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := absLangURL (path.Join "images" $image) }}
+
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
{{if eq $p.series "events"}}
{{- partial "event" . }}
{{ else }}
<article class="post_content">
+ <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/index.html b/layouts/index.html
index 9c5da3b..4fb5cf4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,9 +9,12 @@
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := absLangURL (path.Join "images" $image) }}
+
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
+
<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>
<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 6706f03..bde551a 100644
--- a/layouts/pages/single.html
+++ b/layouts/pages/single.html
@@ -10,9 +10,9 @@
{{- $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>
<article class="post_content">
{{- $t := .Title }}
-
{{- partial "page-meta" . }}
{{- partial "image-feature" . }}
{{ if $p.toc }}
-----------------------------------------------------------------------
Summary of changes:
config/_default/menus/menu.en.toml | 48 ++++++++++++++++++++------------------
config/_default/params.toml | 4 +++-
layouts/_default/single.html | 2 ++
layouts/index.html | 3 +++
layouts/pages/single.html | 2 +-
5 files changed, 34 insertions(+), 25 deletions(-)
hooks/post-receive
--
postgis.net
More information about the postgis-tickets
mailing list