-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move default query into its own template part.
- Tidy up the query itself. - Fix wide/full styles for inner content in the query block.
- Loading branch information
Showing
7 changed files
with
64 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!-- wp:query {"queryId":1,"query":{"perPage":"","pages":"","offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[2227],"sticky":"","inherit":true}} --> | ||
<!-- wp:query-loop --> | ||
<!-- wp:post-title {"isLink":true} /--> | ||
|
||
<!-- wp:post-content /--> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:separator {"align":"center","className":"is-style-twentytwentyone-separator-thick"} --> | ||
<hr class="wp-block-separator aligncenter is-style-twentytwentyone-separator-thick"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-date /--> | ||
|
||
<!-- wp:post-author {"showAvatar":false} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-hierarchical-terms {"term":"category","textAlign":"right"} /--> | ||
|
||
<!-- wp:post-tags {"textAlign":"right"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- /wp:query-loop --> | ||
<!-- /wp:query --> |
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,38 +1,5 @@ | ||
<!-- wp:template-part {"slug":"header","theme":"tt1-blocks","align":"full", "tagName":"header","className":"site-header"} /--> | ||
|
||
<!-- wp:query {"queryId":1,"query":{"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","sticky":""}} --> | ||
<!-- wp:query-loop --> | ||
<!-- wp:post-title {"isLink":true} /--> | ||
|
||
<!-- wp:post-content /--> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- wp:separator {"align":"center","className":"is-style-twentytwentyone-separator-thick"} --> | ||
<hr class="wp-block-separator aligncenter is-style-twentytwentyone-separator-thick"/> | ||
<!-- /wp:separator --> | ||
|
||
<!-- wp:columns --> | ||
<div class="wp-block-columns"><!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-date /--> | ||
|
||
<!-- wp:post-author {"showAvatar":false} /--></div> | ||
<!-- /wp:column --> | ||
|
||
<!-- wp:column --> | ||
<div class="wp-block-column"><!-- wp:post-hierarchical-terms {"term":"category","textAlign":"right"} /--> | ||
|
||
<!-- wp:post-tags {"textAlign":"right"} /--></div> | ||
<!-- /wp:column --></div> | ||
<!-- /wp:columns --> | ||
|
||
<!-- wp:spacer {"height":70} --> | ||
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div> | ||
<!-- /wp:spacer --> | ||
|
||
<!-- /wp:query-loop --> | ||
<!-- /wp:query --> | ||
<!-- wp:template-part {"slug":"query","theme":"tt1-blocks","align":"full"} /--> | ||
|
||
<!-- wp:template-part {"slug":"footer","theme":"tt1-blocks","align":"full","tagName":"footer","className":"site-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
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
/** | ||
* Unused file. | ||
* | ||
* This file is only present to pass the Theme Check. It's not used by the theme. | ||
*/ | ||
?> | ||
|
||
<?php wp_footer(); ?> | ||
</body> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Unused file. | ||
* | ||
* This file is only present to pass the Theme Check. It's not used by the theme. | ||
*/ | ||
?> | ||
<!doctype html> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<meta charset="<?php bloginfo( 'charset' ); ?>"> | ||
<?php wp_head(); ?> | ||
</head> | ||
<body <?php body_class(); ?>> | ||
<?php do_action( 'wp_body_open' ); ?> |
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