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

git at osgeo.org git at osgeo.org
Sat Feb 26 01:59:33 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  da252ecdf82b8e006927607eef592b1bc9961f85 (commit)
      from  478598924605184bfc5f95680777edf928e5e503 (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 da252ecdf82b8e006927607eef592b1bc9961f85
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Feb 26 04:59:29 2022 -0500

    Get rid of news partial, now part of index layout

diff --git a/layouts/index.html b/layouts/index.html
index 52c549b..6aebda4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -23,17 +23,17 @@
     {{ end }}
     <div class="post_body">
       {{- .Content }}
-			<h2>News</h2>
-			<div class="wrap content">
-				<ul class="posts" >
-					{{- range where .Site.RegularPages ".Params.category" "eq" ("news") }}
-						{{ partial "excerpt" . }}
-					{{- end }}
-				</ul>
-
-			</div>
     </div>
 
+		<h2 class="post_related">News</h2>
+		<ul style="list-style-type: none">
+			{{- range where .Site.RegularPages ".Params.category" "eq" ("news") }}
+				{{ partial "excerpt" . }}
+			{{- end }}
+		</ul>
+
+
+
     {{- $showRelatedInArticle := true }}
     {{- if eq $s.showRelatedInArticle false }}
       {{- $showRelatedInArticle = false }}
diff --git a/layouts/partials/news.html b/layouts/partials/news.html
deleted file mode 100644
index 0dfb387..0000000
--- a/layouts/partials/news.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{{ $pages := site.RegularPages }}
-
-	<h2>News</h2>
-	{{ range where .Site.RegularPages ".Params.category" "eq" ("news") }}
-	<div class="post_body">
-				{{ partial "excerpt" . }}
-	</div>
-  {{end }}
-
diff --git a/layouts/partials/sidehome.html b/layouts/partials/sidehome.html
index aaca149..669b13f 100644
--- a/layouts/partials/sidehome.html
+++ b/layouts/partials/sidehome.html
@@ -44,12 +44,15 @@
 			</div>
 			{{end }}
 
-			<h2>Tips</h2>
-			{{ range where .Site.RegularPages ".Params.category" "eq" ("tips") }}
-			<div class="flex-column">
-						{{ partial "excerpt" . }}
+			<div class="flex-column wrap">
+				<h2 class="post_related">Tips</h2>
+				<ul class="post_content" style="list-style-type: none;text-indent: -5px;">
+					{{ range where .Site.RegularPages ".Params.category" "eq" ("tips") }}
+							{{ partial "excerpt" . }}
+					{{end }}
+				</ul>
 			</div>
-			{{end }}
+
 
 
     {{- $tagsLimit := (default 100 $s.numberOfTagsShown) }}

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

Summary of changes:
 layouts/index.html             | 18 +++++++++---------
 layouts/partials/news.html     |  9 ---------
 layouts/partials/sidehome.html | 13 ++++++++-----
 3 files changed, 17 insertions(+), 23 deletions(-)
 delete mode 100644 layouts/partials/news.html


hooks/post-receive
-- 
postgis.net


More information about the postgis-tickets mailing list