Skip to content

Commit

Permalink
Change query-loop to post-template #33
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Jun 25, 2021
1 parent aa3903e commit e1a5c22
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions block-template-parts/call-#5-query-quest.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2>Videos</h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":4,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[6],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"list"}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"><!-- wp:post-featured-image {"isLink":true} /--></div>
Expand All @@ -15,7 +15,7 @@ <h2>Videos</h2>
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:75%"><!-- wp:post-title {"isLink":true} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->
<!-- /wp:query --></div>
<!-- /wp:column -->

Expand All @@ -25,13 +25,13 @@ <h2>FSE is...</h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":8,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[4],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":" ","exclude":[],"sticky":"","inherit":false}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:post-title {"isLink":true} /-->

<!-- wp:post-excerpt /-->

<!-- wp:post-date /-->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->

<!-- wp:paragraph -->
<p></p>
Expand Down
4 changes: 2 additions & 2 deletions block-template-parts/latest-posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 class="has-text-align-center">Latest posts</h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":7,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":false},"displayLayout":{"type":"flex","columns":3},"layout":{"type":"flex","columns":3}} -->
<div class="wp-block-query"><!-- wp:query-loop -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
<main class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:post-title {"isLink":true} /-->

Expand All @@ -17,5 +17,5 @@ <h2 class="has-text-align-center">Latest posts</h2>

<!-- wp:post-featured-image /--></main>
<!-- /wp:group -->
<!-- /wp:query-loop --></div>
<!-- /wp:post-template --></div>
<!-- /wp:query -->
4 changes: 2 additions & 2 deletions block-template-parts/query-pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<!-- /wp:html -->

<!-- wp:query {"queryId":8,"query":{"perPage":100,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"flex","columns":3}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:post-title {"isLink":true,"fontSize":"small"} /-->

<!-- wp:post-excerpt {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"small"} /-->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->
Expand Down
4 changes: 2 additions & 2 deletions block-templates/archive-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:query {"queryId":7,"query":{"perPage":2,"pages":0,"offset":0,"postType":"page","categoryIds":[],"tagIds":[],"order":"asc","orderBy":"title","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"list"}} -->
<div class="wp-block-query"><!-- wp:query-loop -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"></div>
Expand Down Expand Up @@ -38,7 +38,7 @@
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->
Expand Down
4 changes: 2 additions & 2 deletions block-templates/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:query {"queryId":7,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"list"}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"><!-- wp:post-featured-image {"isLink":true} /--></div>
Expand All @@ -35,7 +35,7 @@
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<div class="wp-block-query-pagination"><!-- wp:query-pagination-previous /-->
Expand Down
8 changes: 4 additions & 4 deletions block-templates/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2>Videos</h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":4,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[6],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"list"}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"25%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:25%"><!-- wp:post-featured-image {"isLink":true} /--></div>
Expand All @@ -21,7 +21,7 @@ <h2>Videos</h2>
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:75%"><!-- wp:post-title {"isLink":true} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->
<!-- /wp:query --></div>
<!-- /wp:column -->

Expand All @@ -31,13 +31,13 @@ <h2>FSE is...</h2>
<!-- /wp:heading -->

<!-- wp:query {"queryId":8,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[4],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":" ","exclude":[],"sticky":"","inherit":false}} -->
<!-- wp:query-loop -->
<!-- wp:post-template -->
<!-- wp:post-title {"isLink":true} /-->

<!-- wp:post-excerpt /-->

<!-- wp:post-date /-->
<!-- /wp:query-loop -->
<!-- /wp:post-template -->
<!-- /wp:query --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
Expand Down

0 comments on commit e1a5c22

Please sign in to comment.