[postgis-tickets] [SCM] postgis.net branch website updated. clarity-final-56-gf9d9143

git at osgeo.org git at osgeo.org
Sat Sep 9 01:19:11 PDT 2023


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  f9d9143e169a3caf4e71cead7b9d3d527665ab98 (commit)
      from  fef3e797f3c148fa87b65f940d998356c59a9071 (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 f9d9143e169a3caf4e71cead7b9d3d527665ab98
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Sep 9 04:19:07 2023 -0400

    Move list of languages to config file and just loop thru the list in docs

diff --git a/config.toml b/config.toml
index ac265cb..67fe0c7 100644
--- a/config.toml
+++ b/config.toml
@@ -123,6 +123,8 @@ enableRobotsTXT = true
   # (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
   geekdocTagsToMenu = false
 
+  docLanguages = ['en', 'ja', 'fr', 'zh_Hans', 'de', 'ko_KR', 'es', 'it', 'br']
+
   # (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
   # 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
   # e.g. 'title_reverse'.
@@ -200,4 +202,4 @@ enableRobotsTXT = true
     #   minor = "2.3"
     #   dev = "2.3.11"
     #   tag = "2.3.11"
-    #   eol = true
+    #   eol = true
\ No newline at end of file
diff --git a/layouts/shortcodes/doclinks.html b/layouts/shortcodes/doclinks.html
index 6994504..f754699 100644
--- a/layouts/shortcodes/doclinks.html
+++ b/layouts/shortcodes/doclinks.html
@@ -8,38 +8,41 @@
 {{ if ( and (.is_dev) (eq $ver "dev") )   }}
 <li>PostGIS {{ $key }}
 	HTML:
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/en/">en</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/ja/">ja</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/fr/">fr</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/de/">de</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/br/">br</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/ko_KR/">ko_KR</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/es/">es</a>
-	<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/it/">it</a>
+	{{ range $.Site.Params.docLanguages }}
+		<a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/{{ . }}/">{{ . }}</a>
+	{{ end }}
 </li>
 <li>PostGIS {{ $key }} PDF:
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}.en.pdf">en</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-ja.pdf">ja</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-fr.pdf">fr</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-de.pdf">de</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-br.pdf">br</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-es.pdf">es</a>
-	<a href="{{$.Site.Params.postgis.dev_download}}/postgis-{{ $key }}-it.pdf">it</a>
+	{{ range $.Site.Params.docLanguages }}
+	<a href="{{$.Site.Params.postgis.site_docs}}/postgis-{{ $key }}.{{.}}.pdf">{{ . }}</a>
+	{{ end }}
 </li>
 <li>PostGIS {{ $key }} Cheat Sheets:
 	<ul>
-        <li>postgis: <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/postgis_cheatsheet-en.html">[en]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/postgis_cheatsheet-ja.html">[ja]</a>
-     <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/postgis_cheatsheet-fr.html">[fr]</a>
-     <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/postgis_cheatsheet-de.html">[de]</a></li>
+		<li>postgis: 
+			{{ range $.Site.Params.docLanguages }}
+			 <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/postgis_cheatsheet-{{.}}.html">{{ . }}</a>
+			{{ end }}
+		</li>
 
-	<li>raster: <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/raster_cheatsheet-en.html">[en]</a>
-     <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/raster_cheatsheet-ja.html">[ja]</a>
-     <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/raster_cheatsheet-fr.html">[fr]</a>
-     <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/raster_cheatsheet-de.html">[de]</a></li>
-    <li>topology: <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/topology_cheatsheet-en.html">[en]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/topology_cheatsheet-ja.html">[ja]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/topology_cheatsheet-ja.html">[fr]</a></li>
-    <li>sfcgal: <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/sfcgal_cheatsheet-en.html">[en]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/sfcgal_cheatsheet-ja.html">[ja]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/sfcgal_cheatsheet-fr.html">[fr]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/sfcgal_cheatsheet-de.html">[de]</a></li>
-    <li>tiger_geocoder: <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}tiger_geocoder_cheatsheet-en.html">[en]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}tiger_geocoder_cheatsheet-ja.html">[ja]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}tiger_geocoder_cheatsheet-fr.html">[fr]</a> <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}tiger_geocoder_cheatsheet-de.html">[de]</a></li>
-    </ul>
+		<li>raster: 
+			{{ range $.Site.Params.docLanguages }}
+			 <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/raster_cheatsheet-{{.}}.html">{{ . }}</a>
+			{{ end }}
+		</li>
+
+		<li>topology: 
+			{{ range $.Site.Params.docLanguages }}
+			 <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}/topology_cheatsheet-{{.}}.html">{{ . }}</a>
+			{{ end }}
+		</li>
+		
+		<li>tiger_geocoder: 
+			{{ range $.Site.Params.docLanguages }}
+			 <a href="{{$.Site.Params.postgis.site_docs}}/manual-{{ $key }}tiger_geocoder_cheatsheet-{{.}}.html">{{ . }}</a>
+			{{ end }}
+		</li>
+  </ul>
 </li>
 {{ end }}
 

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

Summary of changes:
 config.toml                      |  4 ++-
 layouts/shortcodes/doclinks.html | 55 +++++++++++++++++++++-------------------
 2 files changed, 32 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list