Skip to content

Commit

Permalink
Issue #27 - restructure home.html to use a simplified home-query.html…
Browse files Browse the repository at this point in the history
… that uses metadates.html, and metadates.html to use [bw_field]
  • Loading branch information
bobbingwide committed Nov 10, 2020
1 parent 05ac22e commit 18a970b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 44 deletions.
49 changes: 14 additions & 35 deletions block-template-parts/home-query.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,28 @@
<!-- wp:group {"className":"posts"} -->
<div class="wp-block-group posts"><div class="wp-block-group__inner-container"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"100%"} -->
<div class="wp-block-column" style="flex-basis:100%"><!-- wp:query-loop -->

<!-- wp:query-loop -->
<!-- wp:group -->
<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:post-title /-->
<div class="wp-block-group"><div class="wp-block-group__inner-container">
<!-- wp:post-title { "isLink": true } /-->

<!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:post-excerpt {"moreText":""} /-->

<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:paragraph -->
<p>Published:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Last updated:</p>
<!-- /wp:paragraph -->
<!-- wp:post-excerpt {"moreText":"more"} /-->

<!-- wp:paragraph -->
<p>Filed Under:</p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:post-hierarchical-terms {"term":"category"} /-->

<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-date {"format":"F j, Y"} /-->

<!-- wp:shortcode -->
[bw_fields post_modified]
<!-- /wp:shortcode -->

<!-- wp:post-hierarchical-terms {"term":"category"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
</div></div>
<!-- /wp:group -->
<!-- wp:template-part { "slug": "metadates", "theme":"fizzie" } /-->

<!-- wp:spacer {"height":39} -->

<!-- wp:spacer {"height":39} -->
<div style="height:39px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- /wp:query-loop --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:query-pagination /-->
</div></div>
<!-- /wp:group -->
<!-- /wp:query-loop -->


<!-- wp:query-pagination /-->


2 changes: 1 addition & 1 deletion block-template-parts/metadates.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>Published: [bw_fields post_date] | Last updated: [bw_fields post_modified] [post-edit]</p>
<p>Published: [bw_field post_date] | Last updated: [bw_field post_modified] [post-edit]</p>
2 changes: 1 addition & 1 deletion block-templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<!-- wp:template-part {"slug":"breadcrumbs","theme":"fizzie", "className": "breadcrumbs" } /-->

<!-- wp:template-part {"slug":"home-query","theme":"fizzie"} /-->
<!-- wp:template-part {"slug":"home-query","theme":"fizzie", "className": "home"} /-->

<!-- wp:template-part {"slug":"search","theme":"fizzie"} /-->

Expand Down
12 changes: 5 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,17 @@ 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 {
background-color: transparent;
}

.posts .wp-block-group {
padding: 1em;

}

.wp-block-post-date {
Expand All @@ -183,7 +180,8 @@ div.a2z,
div.information,
div.download,
div.metadates,
section.archive{
section.archive,
div.home {
max-width: 1140px;
margin: 0 auto;
}
Expand Down

0 comments on commit 18a970b

Please sign in to comment.