mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 07:20:01 +01:00
cb934c06db
This update includes the following bugfixes: - Fix: Added a new block pattern for the home template that inherits the page query and fits the design of the home page. (more context on the theme repo: https://github.com/WordPress/twentytwentyfour/pull/706) - Fix: Rely on parent theme data for block style. - Fix: Categories for some patterns. - Fix: Minor labeling issues Follow-up to [56999], [56951], [56813], [56764], [56716]. Props anlino, beafialho, desrosj, devmuhib, didierjm, fabiorubioglio, flixos90, hanneslsm, hellofromTonya, huzaifaalmesbah, ktaron, luminuu, mshowes, onemaggie, phillsav, poena, rajinsharwar, richtabor, shailu25. Fixes #59770, #59759. Built from https://develop.svn.wordpress.org/trunk@57036 git-svn-id: http://core.svn.wordpress.org/trunk@56547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
84 lines
2.8 KiB
PHP
84 lines
2.8 KiB
PHP
<?php
|
|
/**
|
|
* Title: Blogging home
|
|
* Slug: twentytwentyfour/page-home-blogging
|
|
* Categories: page
|
|
* Keywords: page, starter
|
|
* Post Types: page, wp_template
|
|
* Viewport width: 1400
|
|
*/
|
|
?>
|
|
|
|
<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-statement-small"} /-->
|
|
|
|
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
|
|
<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
|
|
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"1rem","left":"1rem"}}}} -->
|
|
<div class="wp-block-columns alignwide">
|
|
<!-- wp:column {"width":"10%"} -->
|
|
<div class="wp-block-column" style="flex-basis:10%">
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"60%"} -->
|
|
<div class="wp-block-column" style="flex-basis:60%">
|
|
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true}} -->
|
|
<div class="wp-block-query">
|
|
<!-- wp:post-template -->
|
|
<!-- wp:group {"tagName":"article","layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
|
|
<article class="wp-block-group">
|
|
<!-- wp:post-featured-image /-->
|
|
|
|
<!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
|
|
|
|
<!-- wp:template-part {"slug":"post-meta"} /-->
|
|
|
|
</article>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:post-excerpt {"moreText":"","excerptLength":40} /-->
|
|
|
|
<!-- wp:spacer -->
|
|
<div style="height:100px" aria-hidden="true" class="wp-block-spacer">
|
|
</div>
|
|
<!-- /wp:spacer -->
|
|
<!-- /wp:post-template -->
|
|
|
|
<!-- wp:query-pagination {"paginationArrow":"arrow","layout":{"type":"flex","justifyContent":"space-between"}} -->
|
|
<!-- wp:query-pagination-previous /-->
|
|
|
|
<!-- wp:query-pagination-numbers /-->
|
|
|
|
<!-- wp:query-pagination-next /-->
|
|
<!-- /wp:query-pagination -->
|
|
|
|
<!-- wp:query-no-results -->
|
|
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
|
|
<!-- /wp:query-no-results -->
|
|
</div>
|
|
<!-- /wp:query -->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"10%"} -->
|
|
<div class="wp-block-column" style="flex-basis:10%">
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"30%"} -->
|
|
<div class="wp-block-column" style="flex-basis:30%">
|
|
<!-- wp:template-part {"slug":"sidebar","tagName":"aside"} /-->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"width":"10%"} -->
|
|
<div class="wp-block-column" style="flex-basis:10%">
|
|
</div>
|
|
<!-- /wp:column -->
|
|
</div>
|
|
<!-- /wp:columns -->
|
|
</div>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:pattern {"slug":"twentytwentyfour/cta-subscribe-centered"} /-->
|