forked from WordPress/twentytwentyfive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request WordPress#103 from WordPress/add/personal-blog
Add templates, patterns, style variations and theme.json changes for "personal blog" Co-authored-by: carolinan <poena@git.wordpress.org> Co-authored-by: juanfra <juanfra@git.wordpress.org>
- Loading branch information
Showing
11 changed files
with
277 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Title: No results | ||
* Slug: twentytwentyfive/hidden-no-results | ||
* Inserter: no | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:paragraph --> | ||
<p><?php echo esc_html_x( 'No posts were found.', 'Message explaining that there are no results returned from a search', 'twentytwentyfive' ); ?></p> | ||
<!-- /wp:paragraph --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Title: Post navigation | ||
* Slug: twentytwentyfive/post-navigation | ||
* Categories: text | ||
* Description: Next and previous post links. | ||
* Block Types: core/post-navigation-link | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignfull" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"ariaLabel":"Post navigation","tagName":"nav","align":"full","style":{"border":{"top":{"color":"var:preset|color|opacity-20","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<nav class="wp-block-group alignfull" aria-label="Post navigation" style="border-top-color:var(--wp--preset--color--opacity-20);border-top-width:1px;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"> | ||
<!-- wp:post-navigation-link {"type":"previous","showTitle":true,"arrow":"arrow"} /--> | ||
<!-- wp:post-navigation-link {"showTitle":true,"arrow":"arrow"} /--> | ||
</nav> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
/** | ||
* Title: List of posts, 1 column | ||
* Slug: twentytwentyfive/posts-personal-blog | ||
* Categories: query | ||
* Block Types: core/query | ||
* Description: A list of posts, 1 column, with featured image and post date. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"align":"full","layout":{"type":"default"}} --> | ||
<div class="wp-block-query alignfull"> | ||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:query-no-results --> | ||
<!-- wp:pattern {"slug":"twentytwentyfive/hidden-no-results"} /--> | ||
<!-- /wp:query-no-results --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:post-template {"align":"full","layout":{"type":"default"}} --> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"3/2"} /--> | ||
<!-- wp:post-title {"isLink":true,"fontSize":"large"} /--> | ||
<!-- wp:post-content {"align":"full","fontSize":"small","layout":{"type":"constrained"}} /--> | ||
<!-- wp:post-date {"isLink":true,"style":{"spacing":{"margin":{"top":"var:preset|spacing|40"}}},"fontSize":"x-small"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- /wp:post-template --> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignfull" style="padding-right:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:query-pagination {"paginationArrow":"arrow","align":"full","layout":{"type":"flex","justifyContent":"space-between"}} --> | ||
<!-- wp:query-pagination-previous /--> | ||
<!-- wp:query-pagination-numbers /--> | ||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:query --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 3, | ||
"$schema": "https://schemas.wp.org/trunk/theme.json", | ||
"title": "Pill shaped", | ||
"slug": "post-terms-1", | ||
"blockTypes": ["core/post-terms"], | ||
"styles": { | ||
"elements": { | ||
"link": { | ||
"border": { | ||
"color": "var:preset|color|opacity-20", | ||
"radius": "20px", | ||
"width": "0.8px", | ||
"style": "solid" | ||
}, | ||
"spacing": { | ||
"padding": { | ||
"top": "5px", | ||
"right": "10px", | ||
"bottom": "5px", | ||
"left": "10px" | ||
} | ||
}, | ||
"typography": { | ||
"fontWeight": "400" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:query-title {"type":"archive"} /--> | ||
<!-- wp:term-description /--> | ||
<!-- wp:pattern {"slug":"twentytwentyfive/posts-personal-blog"} /--> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:heading {"level":1,"fontSize":"x-large"} --> | ||
<h1 class="wp-block-heading has-x-large-font-size">Blog</h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:pattern {"slug":"twentytwentyfive/posts-personal-blog"} /--> | ||
|
||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,14 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:query {"tagName":"main","layout":{"inherit":true}} --> | ||
<main class="wp-block-query"> | ||
<!-- wp:post-template --> | ||
<!-- wp:group --> | ||
<div class="wp-block-group"> | ||
<!-- wp:post-title {"isLink":true} /--> | ||
<!-- wp:post-featured-image {"isLink":true} /--> | ||
<!-- wp:post-content /--> | ||
<!-- wp:group {"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:post-author {"showAvatar":false,"showBio":false} /--> | ||
<!-- wp:post-date {"isLink":true} /--> | ||
<!-- wp:post-terms {"term":"category"} /--> | ||
<!-- wp:post-terms {"term":"post_tag"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- /wp:post-template --> | ||
<!-- wp:group {"layout":{"inherit":true}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:query-pagination --> | ||
<!-- wp:query-pagination-previous /--> | ||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:heading {"level":1,"fontSize":"x-large"} --> | ||
<h1 class="wp-block-heading has-x-large-font-size">Blog</h1> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:query-pagination-numbers /--> | ||
<!-- wp:pattern {"slug":"twentytwentyfive/posts-personal-blog"} /--> | ||
|
||
<!-- wp:query-pagination-next /--> | ||
<!-- /wp:query-pagination --> | ||
</div> | ||
<!-- /wp:group --> | ||
</main> | ||
<!-- /wp:query --> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|60"}}}} /--> | ||
<!-- wp:post-title {"level":1,"fontSize":"x-large"} /--> | ||
<!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:query-title {"type":"search"} /--> | ||
<!-- wp:search {"label":"Search","showLabel":false,"buttonText":"Search","style":{"border":{"radius":"50px"}},"fontSize":"small"} /--> | ||
<!-- wp:pattern {"slug":"twentytwentyfive/posts-personal-blog"} /--> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
|
||
<!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"> | ||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:post-terms {"term":"category"} /--> | ||
<!-- wp:post-title {"level":1,"fontSize":"x-large"} /--> | ||
<!-- wp:post-featured-image {"aspectRatio":"3/2"} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10","margin":{"bottom":"var:preset|spacing|60"}}},"fontSize":"x-small","layout":{"type":"flex","flexWrap":"nowrap"}} --> | ||
<div class="wp-block-group has-x-small-font-size" style="margin-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:paragraph {"textColor":"primary"} --> | ||
<p class="has-primary-color has-text-color">Written by </p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:post-author-name {"isLink":true} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"> | ||
<!-- wp:post-terms {"term":"post_tag","separator":" ","className":"is-style-post-terms-1"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignfull" style="margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"> | ||
<!-- wp:group {"ariaLabel":"Posts navigation","tagName":"nav","align":"full","style":{"border":{"top":{"color":"var:preset|color|contrast","width":"1px"}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} --> | ||
<nav class="wp-block-group alignfull" aria-label="Posts navigation" style="border-top-color:var(--wp--preset--color--contrast);border-top-width:1px;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)"> | ||
<!-- wp:post-navigation-link {"type":"previous","showTitle":true,"arrow":"arrow"} /--> | ||
<!-- wp:post-navigation-link {"showTitle":true,"arrow":"arrow"} /--> | ||
</nav> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
</div> | ||
<!-- /wp:group --> | ||
</main> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters