404
@@ -18,4 +18,4 @@
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/index.html b/block-templates/index.html
index ac676821..825c9038 100644
--- a/block-templates/index.html
+++ b/block-templates/index.html
@@ -1,20 +1,36 @@
-
+
-
-
+
+
+
+
+
+
+
+
-
+
+
-
+
-
+
+
+
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -26,4 +42,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/page-home.html b/block-templates/page-home.html
index ddb75818..943fcdaa 100644
--- a/block-templates/page-home.html
+++ b/block-templates/page-home.html
@@ -1,9 +1,9 @@
-
-
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/page-no-separators.html b/block-templates/page-no-separators.html
new file mode 100644
index 00000000..f0874010
--- /dev/null
+++ b/block-templates/page-no-separators.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/block-templates/page.html b/block-templates/page.html
index 10be209d..c7f1c822 100644
--- a/block-templates/page.html
+++ b/block-templates/page.html
@@ -1,21 +1,21 @@
-
+
-
-
-
+
+
+
-
+
-
-
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/single-no-separators.html b/block-templates/single-no-separators.html
new file mode 100644
index 00000000..071e5d6a
--- /dev/null
+++ b/block-templates/single-no-separators.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/block-templates/single.html b/block-templates/single.html
index 06134a81..506d64bd 100644
--- a/block-templates/single.html
+++ b/block-templates/single.html
@@ -1,49 +1,51 @@
-
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/inc/block-patterns.php b/inc/block-patterns.php
index 3712b266..b5b2d91c 100644
--- a/inc/block-patterns.php
+++ b/inc/block-patterns.php
@@ -66,8 +66,9 @@ function twentytwentytwo_register_block_patterns() {
'page-layout-image-text-and-video',
'page-layout-two-columns',
'query-default',
- 'query-text-grid',
'query-simple-blog',
+ 'query-grid',
+ 'query-text-grid',
'query-image-grid',
'query-large-titles',
'query-irregular-grid',
diff --git a/inc/patterns/query-default.php b/inc/patterns/query-default.php
index 7e80c304..4207ccd9 100644
--- a/inc/patterns/query-default.php
+++ b/inc/patterns/query-default.php
@@ -6,21 +6,39 @@
'title' => __( 'Default posts', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo-query' ),
'blockTypes' => array( 'core/query' ),
- 'content' => '
+ 'content' => '
-
+
+
-
+
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/inc/patterns/query-grid.php b/inc/patterns/query-grid.php
new file mode 100644
index 00000000..cd80c42f
--- /dev/null
+++ b/inc/patterns/query-grid.php
@@ -0,0 +1,32 @@
+ __( 'Grid of posts', 'twentytwentytwo' ),
+ 'categories' => array( 'twentytwentytwo-query' ),
+ 'blockTypes' => array( 'core/query' ),
+ 'content' => '
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ',
+);
diff --git a/inc/patterns/query-image-grid.php b/inc/patterns/query-image-grid.php
index c1546e46..1c6e19f3 100644
--- a/inc/patterns/query-image-grid.php
+++ b/inc/patterns/query-image-grid.php
@@ -1,9 +1,9 @@
__( 'Image grid posts', 'twentytwentytwo' ),
+ 'title' => __( 'Grid of image posts', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo-query' ),
'blockTypes' => array( 'core/query' ),
'content' => '
diff --git a/theme.json b/theme.json
index 70344c50..28e8658d 100644
--- a/theme.json
+++ b/theme.json
@@ -1,5 +1,36 @@
{
"version": 1,
+ "customTemplates": [
+ {
+ "name": "blank",
+ "title": "Blank",
+ "postTypes": [
+ "page",
+ "post"
+ ]
+ },
+ {
+ "name": "page-home",
+ "title": "Homepage",
+ "postTypes": [
+ "page"
+ ]
+ },
+ {
+ "name": "single-no-separators",
+ "title": "Single Post (No Separators)",
+ "postTypes": [
+ "post"
+ ]
+ },
+ {
+ "name": "page-no-separators",
+ "title": "Page (No Separators)",
+ "postTypes": [
+ "page"
+ ]
+ }
+ ],
"settings": {
"color": {
"gradients": [
@@ -74,6 +105,11 @@
]
},
"custom": {
+ "spacing": {
+ "small": "max(1.25rem, 5vw)",
+ "medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))",
+ "large": "8rem"
+ },
"typography": {
"font-size": {
"gigantic": "clamp(3rem, 6vw, 4rem)",
@@ -174,6 +210,14 @@
"width": "1px 0"
}
},
+ "core/query-title": {
+ "typography": {
+ "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
+ "fontWeight": "300",
+ "lineHeight": "var(--wp--custom--typography--line-height--small)",
+ "fontSize": "var(--wp--custom--typography--font-size--gigantic)"
+ }
+ },
"core/quote": {
"border": {
"width": "0 0 0 1px"
+
+
+
+
+
+
-
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/page-no-separators.html b/block-templates/page-no-separators.html
new file mode 100644
index 00000000..f0874010
--- /dev/null
+++ b/block-templates/page-no-separators.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/block-templates/page.html b/block-templates/page.html
index 10be209d..c7f1c822 100644
--- a/block-templates/page.html
+++ b/block-templates/page.html
@@ -1,21 +1,21 @@
-
+
-
-
-
-
+
-
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/page-home.html b/block-templates/page-home.html
index ddb75818..943fcdaa 100644
--- a/block-templates/page-home.html
+++ b/block-templates/page-home.html
@@ -1,9 +1,9 @@
-
-
+
- + + +
+
+
+
+
+
+
+
@@ -26,4 +42,4 @@
-
-
+
+
-
-- + + +
+
+
+
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/block-templates/single-no-separators.html b/block-templates/single-no-separators.html
new file mode 100644
index 00000000..071e5d6a
--- /dev/null
+++ b/block-templates/single-no-separators.html
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/block-templates/single.html b/block-templates/single.html
index 06134a81..506d64bd 100644
--- a/block-templates/single.html
+++ b/block-templates/single.html
@@ -1,49 +1,51 @@
-
+
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
-
-
+
+
-
-
-
- - - -
- - - -
+
+ + + +
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/inc/block-patterns.php b/inc/block-patterns.php
index 3712b266..b5b2d91c 100644
--- a/inc/block-patterns.php
+++ b/inc/block-patterns.php
@@ -66,8 +66,9 @@ function twentytwentytwo_register_block_patterns() {
'page-layout-image-text-and-video',
'page-layout-two-columns',
'query-default',
- 'query-text-grid',
'query-simple-blog',
+ 'query-grid',
+ 'query-text-grid',
'query-image-grid',
'query-large-titles',
'query-irregular-grid',
diff --git a/inc/patterns/query-default.php b/inc/patterns/query-default.php
index 7e80c304..4207ccd9 100644
--- a/inc/patterns/query-default.php
+++ b/inc/patterns/query-default.php
@@ -6,21 +6,39 @@
'title' => __( 'Default posts', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo-query' ),
'blockTypes' => array( 'core/query' ),
- 'content' => '
+ 'content' => '
+
-
-
-
+
+
+
+
+
++ + + +
-
+
+
-
+
-
+
+
+ + +
+
+
+
diff --git a/inc/patterns/query-grid.php b/inc/patterns/query-grid.php
new file mode 100644
index 00000000..cd80c42f
--- /dev/null
+++ b/inc/patterns/query-grid.php
@@ -0,0 +1,32 @@
+ __( 'Grid of posts', 'twentytwentytwo' ),
+ 'categories' => array( 'twentytwentytwo-query' ),
+ 'blockTypes' => array( 'core/query' ),
+ 'content' => '
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + +
+ ',
+);
diff --git a/inc/patterns/query-image-grid.php b/inc/patterns/query-image-grid.php
index c1546e46..1c6e19f3 100644
--- a/inc/patterns/query-image-grid.php
+++ b/inc/patterns/query-image-grid.php
@@ -1,9 +1,9 @@
__( 'Image grid posts', 'twentytwentytwo' ),
+ 'title' => __( 'Grid of image posts', 'twentytwentytwo' ),
'categories' => array( 'twentytwentytwo-query' ),
'blockTypes' => array( 'core/query' ),
'content' => '
diff --git a/theme.json b/theme.json
index 70344c50..28e8658d 100644
--- a/theme.json
+++ b/theme.json
@@ -1,5 +1,36 @@
{
"version": 1,
+ "customTemplates": [
+ {
+ "name": "blank",
+ "title": "Blank",
+ "postTypes": [
+ "page",
+ "post"
+ ]
+ },
+ {
+ "name": "page-home",
+ "title": "Homepage",
+ "postTypes": [
+ "page"
+ ]
+ },
+ {
+ "name": "single-no-separators",
+ "title": "Single Post (No Separators)",
+ "postTypes": [
+ "post"
+ ]
+ },
+ {
+ "name": "page-no-separators",
+ "title": "Page (No Separators)",
+ "postTypes": [
+ "page"
+ ]
+ }
+ ],
"settings": {
"color": {
"gradients": [
@@ -74,6 +105,11 @@
]
},
"custom": {
+ "spacing": {
+ "small": "max(1.25rem, 5vw)",
+ "medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))",
+ "large": "8rem"
+ },
"typography": {
"font-size": {
"gigantic": "clamp(3rem, 6vw, 4rem)",
@@ -174,6 +210,14 @@
"width": "1px 0"
}
},
+ "core/query-title": {
+ "typography": {
+ "fontFamily": "var(--wp--preset--font-family--source-serif-pro)",
+ "fontWeight": "300",
+ "lineHeight": "var(--wp--custom--typography--line-height--small)",
+ "fontSize": "var(--wp--custom--typography--font-size--gigantic)"
+ }
+ },
"core/quote": {
"border": {
"width": "0 0 0 1px"
+ + + + + + + + +