[postgis-tickets] [SCM] postgis.net branch hugo updated. 3aca7cf32b46639f74ac8088e74e3ebe3c430462
git at osgeo.org
git at osgeo.org
Sun Feb 27 01:47:42 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 3aca7cf32b46639f74ac8088e74e3ebe3c430462 (commit)
from b4a5f574eb98e95f83d10accbf8aaeb4c0892a5b (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 3aca7cf32b46639f74ac8088e74e3ebe3c430462
Author: Regina Obe <lr at pcorp.us>
Date: Sun Feb 27 04:47:38 2022 -0500
Change columns to use css grids instead of tables. Other changes to layout
diff --git a/assets/sass/_custom.sass b/assets/sass/_custom.sass
index 61ec64c..40816ca 100644
--- a/assets/sass/_custom.sass
+++ b/assets/sass/_custom.sass
@@ -17,3 +17,8 @@ a.nav_item
nav_close
text-color: black
+
+.grid-container
+ display: grid
+ grid-template-columns: 1fr 1fr
+ grid-column-gap: 1px
diff --git a/assets/sass/_override.sass b/assets/sass/_override.sass
index 65e3569..a2531f3 100644
--- a/assets/sass/_override.sass
+++ b/assets/sass/_override.sass
@@ -13,3 +13,4 @@
color: #000
.nav_close
background-color: black
+
diff --git a/layouts/pages/single.html b/layouts/pages/single.html
index dff3f10..6706f03 100644
--- a/layouts/pages/single.html
+++ b/layouts/pages/single.html
@@ -12,7 +12,7 @@
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
<article class="post_content">
{{- $t := .Title }}
- <h1 class="post_title">{{ $t }}</h1>
+
{{- partial "page-meta" . }}
{{- partial "image-feature" . }}
{{ if $p.toc }}
diff --git a/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html
index 9e7e7e0..91a0b7b 100644
--- a/layouts/shortcodes/columns.html
+++ b/layouts/shortcodes/columns.html
@@ -1,10 +1,7 @@
-<table>
- <tr style="vertical-align:top">
-
- {{ range split .Inner "---column---" }}
- <td><!-- start column -->
- {{ . | $.Page.RenderString }}
- <!-- end column --></td>
+<div class="grid-container">
+ {{ range $index, $value := split .Inner "---column---" }}
+ <!-- start column -->
+ <div>{{ . | $.Page.RenderString }}</div>
+ <!-- end column -->
{{ end }}
- </tr>
-</table>
+</div>
-----------------------------------------------------------------------
Summary of changes:
assets/sass/_custom.sass | 5 +++++
assets/sass/_override.sass | 1 +
layouts/pages/single.html | 2 +-
layouts/shortcodes/columns.html | 15 ++++++---------
4 files changed, 13 insertions(+), 10 deletions(-)
hooks/post-receive
--
postgis.net
More information about the postgis-tickets
mailing list