45f3a01473
In the "Blog (alternative)" page template, turn post titles into links. This is to better align with user expectations that individual post titles in a blog-like list of recent posts will be links to the corresponding blog posts. Props scruffian. Fixes #57175. git-svn-id: https://develop.svn.wordpress.org/trunk@54887 602fd350-edb4-49c9-b593-d223f7449a82
29 lines
1.5 KiB
HTML
29 lines
1.5 KiB
HTML
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
|
|
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
|
<main class="wp-block-group">
|
|
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide","layout":{"type":"default"}} -->
|
|
<div class="wp-block-query alignwide">
|
|
<!-- wp:post-template -->
|
|
<!-- wp:columns {"style":{"border":{"bottom":{"width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"},"margin":{"top":"-1.5rem","bottom":"0px"}}}} -->
|
|
<div class="wp-block-columns" style="border-bottom-width:1px;margin-top:-1.5rem;margin-bottom:0px;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
|
|
<!-- wp:column {"verticalAlignment":"center","width":"20%"} -->
|
|
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:20%">
|
|
<!-- wp:post-date {"textAlign":"left"} /-->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
|
|
<!-- wp:column {"verticalAlignment":"center","width":"80%"} -->
|
|
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:80%">
|
|
<!-- wp:post-title {"isLink":true} /-->
|
|
</div>
|
|
<!-- /wp:column -->
|
|
</div>
|
|
<!-- /wp:columns -->
|
|
<!-- /wp:post-template -->
|
|
</div>
|
|
<!-- /wp:query -->
|
|
</main>
|
|
<!-- /wp:group -->
|
|
|
|
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|