Browse Source

Add "Page (No Title)" template. (#5719)

Kjell Reigstad 3 years ago
parent
commit
9be1c4a6f8
2 changed files with 18 additions and 0 deletions
  1. 11 0
      archeo/templates/page-no-title.html
  2. 7 0
      archeo/theme.json

+ 11 - 0
archeo/templates/page-no-title.html

@@ -0,0 +1,11 @@
+<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
+
+<!-- wp:group {"tagName":"main"} -->
+<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
+<div class="wp-block-group"><!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} /--></div>
+<!-- /wp:group -->
+
+<!-- wp:post-content {"layout":{"inherit":true}} /--></main>
+<!-- /wp:group -->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

+ 7 - 0
archeo/theme.json

@@ -9,6 +9,13 @@
 				"page",
 				"post"
 			]
+		},
+		{
+			"name": "page-no-title",
+			"title": "Page (No Title)",
+			"postTypes": [
+				"page"
+			]
 		}
 	],
 	"settings": {