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

git at osgeo.org git at osgeo.org
Tue Mar 22 10:30:41 PDT 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  de1df9acf17ccd152333511f92646fcfa4178cbe (commit)
      from  d09998ec4c91b20f5c45335809431c4ecc8752bd (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 de1df9acf17ccd152333511f92646fcfa4178cbe
Author: Regina Obe <lr at pcorp.us>
Date:   Tue Mar 22 13:27:54 2022 -0400

    CHANGES
    1. Change feed file from index.xml to feed.xml so same as current site
    2. Change feed to only include type = post
    3. Change url name of posts to not have post, to match current site

diff --git a/config/_default/config.toml b/config/_default/config.toml
index e9df625..59869af 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -13,7 +13,12 @@ event = "events"
 
 [permalinks]
   '/pages/' = '/:filename/'
-  '/post/' = '/posts/:year/:month/:day/:filename/'
+  '/post/' = '/:year/:month/:day/:filename/'
   '/events/' = '/events/:filename/'
   '/rfcs/' = '/rfcs/:filename/'
   '/' = '/:filename/'
+
+[outputFormats]
+[outputFormats.RSS]
+mediatype = "application/rss"
+baseName = "feed"
\ No newline at end of file
diff --git a/config/_default/menus/menu.en.toml b/config/_default/menus/menu.en.toml
index 209c731..215033d 100644
--- a/config/_default/menus/menu.en.toml
+++ b/config/_default/menus/menu.en.toml
@@ -33,7 +33,7 @@
 [[social]]
   name = "rss"
   weight = 1
-  url = "index.xml"
+  url = "feed.xml"
 # [[social]]
 #   name = "twitter"
 #   weight = 2
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 7f59b9b..abf91d2 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -2,16 +2,18 @@
 {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
 {{- $pages := slice -}}
 {{- if or $.IsHome $.IsSection -}}
-{{- $pages = (where $pctx.RegularPages "Type" "in" site.Params.mainSections) -}}
+{{- $pages = (where $pctx.RegularPages "Type" "in" "posts") -}}
 {{- else -}}
-{{- $pages = (where $pctx.Pages "Type" "in" site.Params.mainSections) -}}
+{{- $pages = (where $pctx.Pages "Type" "in" "posts") -}}
 {{- end -}}
 {{- $limit := .Site.Config.Services.RSS.Limit -}}
 {{- if ge $limit 1 -}}
 {{- $pages = $pages | first $limit -}}
 {{- end -}}
 {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+>
   <channel>
     <title>{{ if eq  .Title  .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
     <link>{{ .Permalink }}</link>
@@ -30,7 +32,8 @@
       <title>{{ .Title }}</title>
       <link>{{ .Permalink }}</link>
       <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
-      {{if .Params.author}}<author>{{ .Params.author }}</author>{{end}}
+      {{if .Params.author}}<author><name>{{ .Params.author }}</name></author>{{end}}
+      {{if .Params.author}}<dc:creator>{{ .Params.author }}</dc:creator>{{end}}
       <guid>{{ .Permalink }}</guid>
       <description>
         {{ if ne site.Params.rss_summary false }}
diff --git a/layouts/partials/sitemap.html b/layouts/partials/sitemap.html
new file mode 100644
index 0000000..85bf429
--- /dev/null
+++ b/layouts/partials/sitemap.html
@@ -0,0 +1,23 @@
+<div class="map">
+<h3>Site Map</h3>
+<ul>
+  <li><a href="/">Home</a></li>
+  <li><a href="/install">Install</a></li>
+  <li><a href="/documentation">Documentation</a></li>
+  <li><a href="/development">Development</a></li>
+  <li><a href="https://planet.postgis.net">Planet PostGIS</a></li>
+  <li><a href="/support">Support</a></li>
+</ul>
+</div>
+
+<div class="map" itemscope itemtype="http://www.schema.org/Organization">
+<h3 itemprop="name">PostGIS Project Steering Committee (PSC)</h3>
+<meta itemscope itemprop="description" content="The PostGIS PSC manages the future direction of the PostGIS project such as timing of releases and new features." />
+<ul>
+  <li itemscope itemprop="contactPoint" itemtype="http://www.schema.org/ContactPoint"><a href="http://cleverelephant.ca/" itemprop="url"><span itemprop="name">Paul Ramsey</span> (<span itemprop="contactType">Chair</span>)</a></li>
+  <li itemscope itemprop="contactPoint" itemtype="http://www.schema.org/ContactPoint"><a href="http://strk.kbt.io/" itemprop="url"><span itemprop="name">Sandro Santilli</span></a></li>
+  <li itemscope itemprop="contactPoint" itemtype="http://www.schema.org/ContactPoint"><a href="http://www.bostongis.com/" itemprop="url"><span itemprop="name">Regina Obe</span></a></li>
+  <li itemscope itemprop="contactPoint" itemtype="http://www.schema.org/ContactPoint"><a href="http://komzpa.net/" itemprop="url"><span itemprop="name">Darafei Praliaskouski</span></a></li>
+  <li itemscope itemprop="contactPoint" itemtype="http://www.schema.org/ContactPoint"><a href="http://rmr.ninja/" itemprop="url"><span itemprop="name">Raúl Marín Rodríguez</span></a></li>
+</ul>
+</div>
\ No newline at end of file

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

Summary of changes:
 config/_default/config.toml        |  7 ++++++-
 config/_default/menus/menu.en.toml |  2 +-
 layouts/_default/rss.xml           | 11 +++++++----
 layouts/partials/sitemap.html      | 23 +++++++++++++++++++++++
 4 files changed, 37 insertions(+), 6 deletions(-)
 create mode 100644 layouts/partials/sitemap.html


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list