From 18a970b2fbe8e32551b8c1d2f866b8b1f64b0363 Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Tue, 10 Nov 2020 12:21:12 +0000 Subject: [PATCH] Issue #27 - restructure home.html to use a simplified home-query.html that uses metadates.html, and metadates.html to use [bw_field] --- block-template-parts/home-query.html | 49 ++++++++-------------------- block-template-parts/metadates.html | 2 +- block-templates/home.html | 2 +- style.css | 12 +++---- 4 files changed, 21 insertions(+), 44 deletions(-) diff --git a/block-template-parts/home-query.html b/block-template-parts/home-query.html index e00cee9..1458e38 100644 --- a/block-template-parts/home-query.html +++ b/block-template-parts/home-query.html @@ -1,49 +1,28 @@ - -
-
-
+ + -
+
+ - - - -
-
-

Published:

- - - -

Last updated:

- + - -

Filed Under:

-
- + - -
- - [bw_fields post_modified] - -
-
-
+
+ - + + -
-
- - -
- + + + + diff --git a/block-template-parts/metadates.html b/block-template-parts/metadates.html index 42d64f0..8eed663 100644 --- a/block-template-parts/metadates.html +++ b/block-template-parts/metadates.html @@ -1 +1 @@ -

Published: [bw_fields post_date] | Last updated: [bw_fields post_modified] [post-edit]

+

Published: [bw_field post_date] | Last updated: [bw_field post_modified] [post-edit]

diff --git a/block-templates/home.html b/block-templates/home.html index 6588452..fa98664 100644 --- a/block-templates/home.html +++ b/block-templates/home.html @@ -4,7 +4,7 @@ - + diff --git a/style.css b/style.css index 1b8e970..96cec97 100644 --- a/style.css +++ b/style.css @@ -145,12 +145,9 @@ h6 { color: #e9e9c8; } -.posts .wp-block-spacer { - background-color: #f5f5f5; -} - -.posts .wp-block-column { +.home .wp-block-group { background-color: #ffffff; + padding: 1em; } .page-footer .wp-block-column { @@ -158,7 +155,7 @@ h6 { } .posts .wp-block-group { - padding: 1em; + } .wp-block-post-date { @@ -183,7 +180,8 @@ div.a2z, div.information, div.download, div.metadates, -section.archive{ +section.archive, +div.home { max-width: 1140px; margin: 0 auto; }