瀏覽代碼

created a footer only template (#5103)

Maggie 3 年之前
父節點
當前提交
0bd7c5bbb6
共有 2 個文件被更改,包括 12 次插入1 次删除
  1. 3 0
      blockbase/block-templates/footer-only.html
  2. 9 1
      blockbase/theme.json

+ 3 - 0
blockbase/block-templates/footer-only.html

@@ -0,0 +1,3 @@
+<!-- wp:post-content {"layout":{"inherit":true}} /-->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer","layout":{"inherit":true},"className":"site-footer-container"} /--> 

+ 9 - 1
blockbase/theme.json

@@ -27,7 +27,15 @@
 				"page",
 				"page",
 				"post"
 				"post"
 			]
 			]
-		}
+		},
+        {
+            "name": "footer-only",
+            "title": "Footer Only",
+            "postTypes": [
+                "page",
+                "post"
+            ]
+        }
 	],
 	],
 	"settings": {
 	"settings": {
 		"border": {
 		"border": {