mirror of
https://github.com/WordPress/create-block-theme.git
synced 2025-10-03 16:11:13 +08:00
Add a main tag wrapper around the query loop (#726)
This commit is contained in:
parent
8993439e59
commit
fbf99339d2
1 changed files with 36 additions and 32 deletions
|
@ -1,39 +1,43 @@
|
||||||
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
||||||
|
|
||||||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} -->
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||||
<main class="wp-block-query">
|
<main class="wp-block-group">
|
||||||
<!-- wp:post-template -->
|
<!-- wp:query {"layout":{"inherit":true}} -->
|
||||||
<!-- wp:group -->
|
<div class="wp-block-query">
|
||||||
<div class="wp-block-group">
|
<!-- wp:post-template -->
|
||||||
<!-- wp:post-title {"isLink":true} /-->
|
<!-- wp:group -->
|
||||||
<!-- wp:post-featured-image {"isLink":true} /-->
|
|
||||||
<!-- wp:post-content /-->
|
|
||||||
<!-- wp:group {"layout":{"type":"flex"}, "style":{"typography":{"fontSize":"14px"}}} -->
|
|
||||||
<div class="wp-block-group" style="font-size:14px">
|
|
||||||
<!-- wp:post-author {"showAvatar":false,"showBio":false} /-->
|
|
||||||
<!-- wp:post-date {"isLink":true} /-->
|
|
||||||
<!-- wp:post-terms {"term":"category"} /-->
|
|
||||||
<!-- wp:post-terms {"term": "post_tag"} /-->
|
|
||||||
</div>
|
|
||||||
<!-- /wp:group -->
|
|
||||||
<!-- wp:spacer {"height":40} -->
|
|
||||||
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
|
|
||||||
<!-- /wp:spacer -->
|
|
||||||
</div>
|
|
||||||
<!-- /wp:group -->
|
|
||||||
<!-- /wp:post-template -->
|
|
||||||
<!-- wp:group {"layout":{"inherit":true}} -->
|
|
||||||
<div class="wp-block-group">
|
<div class="wp-block-group">
|
||||||
<!-- wp:query-pagination -->
|
<!-- wp:post-title {"isLink":true} /-->
|
||||||
<!-- wp:query-pagination-previous /-->
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:post-content /-->
|
||||||
<!-- wp:query-pagination-numbers /-->
|
<!-- wp:group {"layout":{"type":"flex"}, "style":{"typography":{"fontSize":"14px"}}} -->
|
||||||
|
<div class="wp-block-group" style="font-size:14px">
|
||||||
<!-- wp:query-pagination-next /-->
|
<!-- wp:post-author {"showAvatar":false,"showBio":false} /-->
|
||||||
<!-- /wp:query-pagination -->
|
<!-- wp:post-date {"isLink":true} /-->
|
||||||
|
<!-- wp:post-terms {"term":"category"} /-->
|
||||||
|
<!-- wp:post-terms {"term": "post_tag"} /-->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- wp:spacer {"height":40} -->
|
||||||
|
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
|
||||||
|
<!-- /wp:spacer -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:group -->
|
||||||
</main>
|
<!-- /wp:post-template -->
|
||||||
<!-- /wp:query -->
|
<!-- wp:group {"layout":{"inherit":true}} -->
|
||||||
|
<div class="wp-block-group">
|
||||||
|
<!-- wp:query-pagination -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination -->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:query -->
|
||||||
|
</main>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue