Skip to content

Commit

Permalink
Converted comments template to a pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Jun 14, 2022
1 parent 8ecbfa4 commit 8ff1a4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blockbase/block-templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:template-part {"slug":"comments"} /-->
<!-- wp:pattern {"slug":"blockbase/comments"} -->
</div>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion blockbase/block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:template-part {"slug":"comments"} /-->
<!-- wp:pattern {"slug":"blockbase/comments"} -->

</div>
<!-- /wp:group -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php
/**
* Title: Comments
* slug: blockbase/comments
* inserter: no
*/

?>
<!-- wp:comments-query-loop -->
<div class="wp-block-comments-query-loop">
<!-- wp:comments-title /-->
Expand Down

0 comments on commit 8ff1a4e

Please sign in to comment.