This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update query block markup and crop featured images (#165)
* Crop featured images * Change home and index query loops to default layout * Fix home query pagination * Change home layout type back to constrained
- Loading branch information
Showing
4 changed files
with
32 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
<!-- wp:template-part {"slug":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}},"tagName":"main"} --> | ||
<main class="wp-block-query"><!-- wp:post-template {"align":"wide"} --> | ||
<!-- wp:post-title {"isLink":true,"align":"wide"} /--> | ||
|
||
<!-- wp:post-featured-image {"isLink":true,"align":"wide"} /--> | ||
|
||
<!-- wp:columns {"align":"wide"} --> | ||
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"650px"} --> | ||
<div class="wp-block-column" style="flex-basis:650px"><!-- wp:post-excerpt /--> | ||
|
||
<!-- wp:post-date {"isLink":true,"format":"F j, Y"} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column {"width":""} --> | ||
<div class="wp-block-column"></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":"var(--wp--preset--spacing--70)"} --> | ||
<div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- /wp:post-template --> | ||
|
||
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --></main> | ||
<!-- /wp:query --> | ||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group"> | ||
<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"displayLayout":{"type":"flex","columns":3},"align":"wide","layout":{"type":"default"}} --> | ||
<div class="wp-block-query alignwide"> | ||
<!-- wp:post-template {"align":"wide"} --> | ||
<!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"max(15vw, 30vh)","align":"wide"} /--> | ||
<!-- wp:post-title {"isLink":true,"align":"wide"} /--> | ||
<!-- wp:post-excerpt /--> | ||
<!-- wp:post-date {"format":"F j, Y","isLink":true} /--> | ||
<!-- wp:spacer {"height":"var(--wp--preset--spacing--70)"} --> | ||
<div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
<!-- /wp:post-template --> | ||
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --></div> | ||
<!-- /wp:query --> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters