Skip to content

Commit

Permalink
Add tag and p4-page-type templates
Browse files Browse the repository at this point in the history
* Almost identical to the author template, will move shared parts to
template parts later.
  • Loading branch information
Inwerpsel committed Jan 28, 2022
1 parent c1ba35a commit ef11bb9
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
43 changes: 43 additions & 0 deletions block-templates/tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!-- wp:planet4-blocks/framework -->
<!-- wp:group {"className":"container"} -->
<div class="wp-block-group container">
<!-- wp:term-description /-->
<!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":4}} -->
<div class="wp-block-query"><!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->

<!-- wp:post-template -->
<!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:group {"className":"inline-container circle-separated"} -->
<div class="wp-block-group inline-container circle-separated"><!-- wp:post-terms {"term":"p4-page-type","style":{"typography":{"fontSize":"14px"}}} /-->

<!-- wp:post-terms {"term":"post_tag","style":{"typography":{"fontSize":"14px"}}} /--></div>
<!-- /wp:group -->

<!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"16px"}}} /-->

<!-- wp:group {"className":"inline-container dash-separated"} -->
<div class="wp-block-group inline-container dash-separated"><!-- wp:post-date {"format":"M j, Y g:i a","style":{"typography":{"fontSize":"12px"}}} /-->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"12px"}}} -->
<p style="font-size:12px">5 min read</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->
<!-- /wp:planet4-blocks/framework -->
44 changes: 44 additions & 0 deletions block-templates/taxonomy-p4-page-type.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!-- wp:planet4-blocks/framework -->
<!-- wp:group {"className":"container"} -->
<div class="wp-block-group container">
<!-- wp:term-description /-->

<!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","categoryIds":[],"tagIds":[],"order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":4}} -->
<div class="wp-block-query"><!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->

<!-- wp:post-template -->
<!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:group {"className":"inline-container circle-separated"} -->
<div class="wp-block-group inline-container circle-separated"><!-- wp:post-terms {"term":"p4-page-type","style":{"typography":{"fontSize":"14px"}}} /-->

<!-- wp:post-terms {"term":"post_tag","style":{"typography":{"fontSize":"14px"}}} /--></div>
<!-- /wp:group -->

<!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"16px"}}} /-->

<!-- wp:group {"className":"inline-container dash-separated"} -->
<div class="wp-block-group inline-container dash-separated"><!-- wp:post-date {"format":"M j, Y g:i a","style":{"typography":{"fontSize":"12px"}}} /-->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"12px"}}} -->
<p style="font-size:12px">5 min read</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->
<!-- /wp:planet4-blocks/framework -->

0 comments on commit ef11bb9

Please sign in to comment.