posts-post-list.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Title: Post List
  4. * Slug: portia/posts-post-list
  5. * Categories: posts
  6. * Viewport width: 1824
  7. */
  8. declare( strict_types = 1 );
  9. ?>
  10. <!-- wp:group {"layout":{"type":"constrained"}} -->
  11. <div class="wp-block-group">
  12. <!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
  13. <div class="wp-block-query">
  14. <!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|80"}},"layout":{"type":"default"}} -->
  15. <!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  16. <div class="wp-block-group">
  17. <!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
  18. <div class="wp-block-group">
  19. <!-- wp:post-date /-->
  20. <!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
  21. </div>
  22. <!-- /wp:group -->
  23. <!-- wp:post-excerpt {"moreText":"Read more &rarr;"} /-->
  24. </div>
  25. <!-- /wp:group -->
  26. <!-- /wp:post-template -->
  27. <!-- wp:query-no-results -->
  28. <!-- wp:pattern {"slug":"portia/hidden-no-results-content"} /-->
  29. <!-- /wp:query-no-results -->
  30. <!-- wp:query-pagination {"paginationArrow":"arrow","align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
  31. <!-- wp:query-pagination-previous /-->
  32. <!-- wp:query-pagination-next /-->
  33. <!-- /wp:query-pagination -->
  34. </div>
  35. <!-- /wp:query -->
  36. </div>
  37. <!-- /wp:group -->