posts-post-list.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Title: Post List
  4. * Slug: cakely/posts-post-list
  5. * Categories: posts
  6. * Viewport width: 1488
  7. */
  8. declare( strict_types = 1 );
  9. ?>
  10. <!-- wp:query {"query":{"perPage":8,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide"} -->
  11. <div class="wp-block-query alignwide">
  12. <!-- wp:post-template {"layout":{"type":"grid","columnCount":4}} -->
  13. <!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/4","style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} /-->
  14. <!-- wp:group {"style":{"spacing":{"blockGap":"0","margin":{"top":"var:preset|spacing|30"}}},"layout":{"inherit":false}} -->
  15. <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--30)">
  16. <!-- wp:post-title {"isLink":true,"style":{"typography":{"fontStyle":"normal","fontWeight":"400","textTransform":"none","lineHeight":"1.33"}},"fontSize":"medium","fontFamily":"lato"} /-->
  17. <!-- wp:post-date /-->
  18. </div>
  19. <!-- /wp:group -->
  20. <!-- /wp:post-template -->
  21. <!-- wp:query-no-results -->
  22. <!-- wp:pattern {"slug":"cakely/no-results-content"} /-->
  23. <!-- /wp:query-no-results -->
  24. <!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
  25. <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70)">
  26. <!-- wp:query-pagination {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  27. <!-- wp:query-pagination-previous /-->
  28. <!-- wp:query-pagination-next /-->
  29. <!-- /wp:query-pagination -->
  30. </div>
  31. <!-- /wp:group -->
  32. </div>
  33. <!-- /wp:query -->