post-list.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Title: Post List
  4. * Slug: bedrock/post-list
  5. * Inserter: no
  6. */
  7. declare( strict_types = 1 );
  8. ?>
  9. <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"exclude","inherit":true}} -->
  10. <div class="wp-block-query">
  11. <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|60"}},"layout":{"type":"default","columnCount":3}} -->
  12. <!-- wp:columns {"style":{"spacing":{"margin":{"bottom":"0"}}}} -->
  13. <div class="wp-block-columns" style="margin-bottom:0">
  14. <!-- wp:column {"width":"23.8%"} -->
  15. <div class="wp-block-column" style="flex-basis:23.8%">
  16. <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"1","width":"","height":"","style":{"layout":{"selfStretch":"fixed","flexSize":"23.8%"}}} /-->
  17. </div>
  18. <!-- /wp:column -->
  19. <!-- wp:column {"width":"76.2%"} -->
  20. <div class="wp-block-column" style="flex-basis:76.2%">
  21. <!-- wp:post-title {"isLink":true} /-->
  22. <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"flex","orientation":"vertical"}} -->
  23. <div class="wp-block-group">
  24. <!-- wp:post-excerpt {"moreText":"","showMoreOnNewLine":false,"excerptLength":30,"fontSize":"small"} /-->
  25. <!-- wp:template-part {"slug":"post-meta"} /-->
  26. </div>
  27. <!-- /wp:group -->
  28. </div>
  29. <!-- /wp:column -->
  30. </div>
  31. <!-- /wp:columns -->
  32. <!-- /wp:post-template -->
  33. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
  34. <!-- wp:query-pagination-previous /-->
  35. <!-- wp:query-pagination-next /-->
  36. <!-- /wp:query-pagination -->
  37. </div>
  38. <!-- /wp:query -->