home-query.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Title: Home Query
  4. * Slug: rainfall/home-query
  5. * Categories: featured, columns
  6. */
  7. ?>
  8. <!-- wp:heading {"style":{"spacing":{"margin":{"top":"0","right":"0","bottom":"0","left":"0"}}},"fontSize":"xx-large"} -->
  9. <h2 class="has-xx-large-font-size" style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0"><?php esc_html_e( 'Issues', 'rainfall' ); ?></h2>
  10. <!-- /wp:heading -->
  11. <!-- wp:separator -->
  12. <hr class="wp-block-separator has-alpha-channel-opacity"/>
  13. <!-- /wp:separator -->
  14. <!-- wp:query {"queryId":0,"query":{"pages":0,"offset":0,"postType":"post","inherit":false,"perPage":4},"displayLayout":{"type":"flex","columns":2}} -->
  15. <div class="wp-block-query">
  16. <!-- wp:post-template -->
  17. <!-- wp:group {"layout":{"type":"flex","orientation":"vertical"},"align":"wide","style":{"spacing":{"blockGap":"1rem"}}} -->
  18. <div class="wp-block-group alignwide">
  19. <!-- wp:post-featured-image {"width":"100%","height":"max(32vw, 50vh)"} /-->
  20. <!-- wp:post-date {"format":"M j","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /-->
  21. <!-- wp:post-title {"isLink":true,"style":{"typography":{"lineHeight":"1.1","textTransform":"uppercase","fontStyle":"normal","fontWeight":"400"},"color":{"text":"#ffffff","link":"#ffffff"}},"fontSize":"large"} /-->
  22. <!-- wp:post-excerpt /-->
  23. </div>
  24. <!-- /wp:group -->
  25. <!-- /wp:post-template -->
  26. <!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
  27. <!-- wp:query-pagination-previous /-->
  28. <!-- wp:query-pagination-next /-->
  29. <!-- /wp:query-pagination -->
  30. </div>
  31. <!-- /wp:query -->