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

git at osgeo.org git at osgeo.org
Sun Feb 27 08:42:27 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  f476b54d80b7c79fcd28c7143edafcc8e2234cd3 (commit)
      from  01b93dfb24278308837029a7ad9b3e9f232c7534 (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 f476b54d80b7c79fcd28c7143edafcc8e2234cd3
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Feb 27 11:42:20 2022 -0500

    Fix events formatting

diff --git a/layouts/partials/event.html b/layouts/partials/event.html
index f96d970..3825d56 100644
--- a/layouts/partials/event.html
+++ b/layouts/partials/event.html
@@ -1,22 +1,9 @@
-<div class="wrapper">
-	<div class="post_neta">
-		{{- with .Params.tags -}}
-    <span>
-      {{- range . }}
-        {{- $tag := urlize . -}}
-        <a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}" class="post_tag button button_translucent">
-          {{- . }}
-        </a>
-      {{- end }}
-    </span>
-  {{- end }}
-	</div>
+
 	<div class="pale wrapper">
-		<a href="{{.Params.eventLink}}">{{- if .Params.image}}<img src="{{.Params.image}}" alt="{{.Title}}" style="height:75px;flex: content;" /><br />{{ end }}
-			<b>{{.Title}}</b><br />
-			{{- if .Params.eventDates }} {{.Params.eventDates}}<br />{{ end }}
-			{{- if .Params.location }} ,{{.Params.location}}<br />{{ end }}</a>
+		<a href="{{.Params.eventLink}}">{{- if .Params.image}}<img src="{{.Params.image}}" alt="{{.Title}}" style="height:75px;flex: content;" /></a>{{ end }}
+		<a href="{{.Params.eventLink}}"><b>{{.Title}}</b></a><br />
+			{{- if .Params.eventDates }} {{.Params.eventDates}}{{ end }}
+			{{- if .Params.location }}, {{.Params.location}}{{ end }}
 			{{- if .Params.videosLink }}<a class="post_tag button button_translucent" href="{{.Params.videosLink}}">Videos</a><br />{{ end }}
 	{{.Content}}
 	</div>
-</div>
diff --git a/layouts/partials/sidehome.html b/layouts/partials/sidehome.html
index e6e925e..e840003 100644
--- a/layouts/partials/sidehome.html
+++ b/layouts/partials/sidehome.html
@@ -36,25 +36,24 @@
       {{- end }}
     </ul>
     {{- end }}
-		{{$events := where .Site.RegularPages "Params.series" "eq" ("events") }}
-		<h2 class="mt-4">Upcoming Events</h2>
+		{{$events := where .Site.Pages "Params.series" "eq" ("events") }}
+		<h3>Upcoming Events</h2>
 		{{ range where $events "Params.featured" true }}
-						{{ partial "event" . }}
+				{{ partial "event" . }}
 		{{end }}
-
-		<h2 class="mt-4">Past Events</h2>
+		<br />
+		<h3>Past Events</h3>
 		{{ range first 3 (where $events "Params.featured" "ne" true)  }}
 				{{ partial "event" . }}
 		{{end }}
 
-			<div class="flex-column wrap">
-				<h2 class="post_related">Tips</h2>
-				<ul class="post_content" style="list-style-type: none;text-indent: -5px;">
-					{{ range first 3 (where .Site.RegularPages ".Params.category" "eq" ("tips")) }}
-							{{ partial "excerpt" . }}
-					{{end }}
-				</ul>
-			</div>
+		<h2>Tips</h2>
+		<ul style="list-style-type: none;text-indent: -5px;">
+			{{ range first 3 (where .Site.RegularPages ".Params.category" "eq" ("tips")) }}
+					{{ partial "excerpt" . }}
+			{{end }}
+		</ul>
+
 
 
 

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

Summary of changes:
 layouts/partials/event.html    | 23 +++++------------------
 layouts/partials/sidehome.html | 25 ++++++++++++-------------
 2 files changed, 17 insertions(+), 31 deletions(-)


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list