posts-post-list.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Title: Post List
  4. * Slug: vows/posts-post-list
  5. * Categories: posts, featured
  6. * Viewport width: 1600
  7. */
  8. declare( strict_types = 1 );
  9. ?>
  10. <!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"parents":[]},"layout":{"type":"constrained"}} -->
  11. <div class="wp-block-query">
  12. <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|80"}}} -->
  13. <!-- wp:group {"layout":{"type":"constrained"}} -->
  14. <div class="wp-block-group">
  15. <!-- wp:post-featured-image {"isLink":true} /-->
  16. <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  17. <div class="wp-block-group">
  18. <!-- wp:post-date /-->
  19. <!-- wp:post-title {"isLink":true} /-->
  20. </div>
  21. <!-- /wp:group -->
  22. <!-- wp:post-excerpt {"moreText":"Read more \u0026rarr;"} /-->
  23. </div>
  24. <!-- /wp:group -->
  25. <!-- /wp:post-template -->
  26. <!-- wp:group {"style":{"spacing":{"margin":{"top":"var:preset|spacing|70"}}},"layout":{"type":"default"}} -->
  27. <div class="wp-block-group" style="margin-top:var(--wp--preset--spacing--70)">
  28. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"left","orientation":"vertical"}} -->
  29. <!-- wp:query-pagination-previous /-->
  30. <!-- wp:query-pagination-next /-->
  31. <!-- /wp:query-pagination -->
  32. </div>
  33. <!-- /wp:group -->
  34. </div>
  35. <!-- /wp:query -->