Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Posts patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Oct 16, 2023
1 parent a9d1eba commit 16f4ed2
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion patterns/page-01-business-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
<!-- wp:pattern {"slug":"twentytwentyfour/text-feature-grid-3-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-alternating-images"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/testimonial-centered"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-featured"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-grid-2-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-cta-subscribe"} /-->
2 changes: 1 addition & 1 deletion patterns/page-05-portfolio-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
?>

<!-- wp:pattern {"slug":"twentytwentyfour/hidden-portfolio-hero"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-offset-images-only-4-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-images-only-offset-4-col"} /-->
4 changes: 2 additions & 2 deletions patterns/posts-one-column.php → patterns/posts-1-col.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: List of Posts in one column
* Slug: twentytwentyfour/posts-one-column
* Title: List of posts, 1 column
* Slug: twentytwentyfour/posts-1-col
* Categories: query
* Block Types: core/query
*/
Expand Down
5 changes: 2 additions & 3 deletions patterns/posts-three-columns.php → patterns/posts-3-col.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Title: List of posts in three columns
* Description: The default post list with featured images, title, date, author, categories and excerpt.
* Slug: twentytwentyfour/posts-three-columns
* Title: List of posts, 3 columns
* Slug: twentytwentyfour/posts-3-col
* Categories: query
* Block Types: core/query
*/
Expand Down
4 changes: 2 additions & 2 deletions patterns/posts-featured.php → patterns/posts-grid-2-col.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Three Featured posts
* Slug: twentytwentyfour/posts-featured
* Title: Grid of posts featuring the first post, 2 columns
* Slug: twentytwentyfour/posts-grid-2-col
* Categories: query
* Block Types: core/query
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Title: List of posts with featured images in three columns
* Description: This pattern only shows featured images. Make sure that you have assigned images to your posts.
* Slug: twentytwentyfour/posts-three-columns-images
* Title: Posts with featured images only, 3 columns
* Slug: twentytwentyfour/posts-images-only-3-col
* Categories: query
* Block Types: core/query
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Offset posts with images, 4 columns
* Slug: twentytwentyfour/posts-offset-images-only-4-col
* Title: Offset posts with featured images only, 4 columns
* Slug: twentytwentyfour/posts-images-only-offset-4-col
* Categories: posts
*/
?>
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-blogging.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<main class="wp-block-group" style="margin-top:0">
<!-- wp:query-title {"type":"archive","style":{"typography":{"lineHeight":"1"},"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} /-->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-one-column"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-1-col"} /-->
</main>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion patterns/template-archive-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<!-- wp:query-title {"type":"archive","align":"wide","style":{"typography":{"lineHeight":"1"},"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} /-->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-three-columns-images"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-images-only-3-col"} /-->

</main>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<main class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">

<!-- wp:pattern {"slug":"twentytwentyfour/hidden-portfolio-hero"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-offset-images-only-4-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-images-only-offset-4-col"} /-->

</main>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-index-blogging.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h1 class="wp-block-heading" style="padding-top:var(--wp--preset--spacing--50);line-height:1"><?php esc_html_e( 'Watch, Read, Listen', 'twentytwentyfour' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-one-column"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-1-col"} /-->
</main>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion patterns/template-index-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)"><?php esc_html_e( 'Posts', 'twentytwentyfour' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-offset-images-only-4-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-images-only-offset-4-col"} /-->

</main>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-search-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-three-columns-images"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-images-only-3-col"} /-->
</main>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion patterns/template-search-writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-one-column"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-1-col"} /-->
</main>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion templates/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<!-- wp:query-title {"type":"archive","align":"wide","style":{"typography":{"lineHeight":"1"},"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} /-->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-three-columns"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-3-col"} /-->

</main>
<!-- /wp:group -->
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} -->
<h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)">Posts</h1>
<!-- /wp:heading -->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-three-columns"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-3-col"} /-->
</main>
<!-- /wp:group -->

Expand Down
2 changes: 1 addition & 1 deletion templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"twentytwentyfour/posts-three-columns"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-3-col"} /-->
</main>
<!-- /wp:group -->

Expand Down

0 comments on commit 16f4ed2

Please sign in to comment.