Skip to content

Commit

Permalink
Implement post-title template part #35
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Feb 8, 2022
1 parent f38a41e commit 4a2d32b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 60 deletions.
10 changes: 6 additions & 4 deletions parts/main-body-no-featured-image.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- wp:post-content /-->
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:post-content /-->

<!-- wp:spacer {"height":50} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->
5 changes: 5 additions & 0 deletions parts/post-title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:group {"backgroundColor":"site-header-background"} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:post-title {"textColor":"very-light-gray"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
10 changes: 0 additions & 10 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,12 @@

<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontFamily":"var:preset|font-family|opensans","lineHeight":"1.5"}},"textColor":"very-light-gray","fontSize":"large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"404","layout":{"inherit":true}} /-->

<!-- wp:template-part {"slug":"query-pagination","tagName":"section","layout":{"inherit":true}} /-->


<!-- wp:template-part {"slug":"latest-posts","tagName":"section","backgroundColor":"very-light-gray"} /-->
<!-- wp:template-part {"slug":"category-tag-clouds","tagName":"section"} /-->


<!-- wp:template-part {"slug":"footer","style":{"color":{"background":"#f7f7f7"}},"textColor":"foreground","layout":{"inherit":true}} /-->
<!-- wp:template-part {"slug":"post-footer-stuff"} /-->
8 changes: 1 addition & 7 deletions templates/featured-image-left.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
<!-- /wp:html -->
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"align":"wide","style":{"typography":{"fontFamily":"var:preset|font-family|opensans"}},"textColor":"very-light-gray"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
Expand Down
6 changes: 1 addition & 5 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

<!-- wp:template-part {"slug":"header","theme":"thisis"} /-->

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:group {"backgroundColor":"site-header-background"} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:post-title {"textColor":"very-light-gray"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:template-part {"slug":"main-body","theme":"thisis"} /-->

Expand Down
6 changes: 1 addition & 5 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

<!-- wp:template-part {"slug":"header","theme":"thisis"} /-->

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:group {"align":"wide","backgroundColor":"site-header-background","layout":{"inherit":false}} -->
<div class="wp-block-group alignwide has-site-header-background-background-color has-background"><!-- wp:post-title {"textColor":"background"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:columns -->
Expand Down
8 changes: 1 addition & 7 deletions templates/portfolio.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:group {"backgroundColor":"site-header-background"} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textColor":"very-light-gray"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:post-content {"layout":{"inherit":true}} /-->

Expand Down
8 changes: 1 addition & 7 deletions templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontFamily":"var:preset|font-family|opensans","lineHeight":"1.5"}},"textColor":"very-light-gray","fontSize":"large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:template-part {"slug":"main-body","layout":{"inherit":true}} /-->

Expand Down
10 changes: 2 additions & 8 deletions templates/single-post-no-featured-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
<div class="WP_DEBUG">single-post-no-featured-image.html</div>
<!-- /wp:html -->

<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->
<!-- wp:template-part {"slug":"header" } /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontFamily":"var:preset|font-family|opensans","lineHeight":"1.5"}},"textColor":"very-light-gray","fontSize":"large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:template-part {"slug":"previous-next"} /-->

Expand Down
8 changes: 1 addition & 7 deletions templates/single-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

<!-- wp:template-part {"slug":"header","layout":{"inherit":false,"contentSize":"100%"}} /-->

<!-- wp:group {"backgroundColor":"site-header-background","layout":{"inherit":true}} -->
<div class="wp-block-group has-site-header-background-background-color has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-title {"textAlign":"left","style":{"typography":{"fontFamily":"var:preset|font-family|opensans","lineHeight":"1.5"}},"textColor":"very-light-gray","fontSize":"large"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"post-title" } /-->

<!-- wp:template-part {"slug":"previous-next"} /-->

Expand Down

0 comments on commit 4a2d32b

Please sign in to comment.