Skip to content

Commit

Permalink
Add page template
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Jan 27, 2022
1 parent 0e6e204 commit bc106fb
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
1 change: 1 addition & 0 deletions theme/block-templates/blank.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:post-content {"layout":{"inherit":true}} /-->
11 changes: 11 additions & 0 deletions theme/block-templates/page-no-title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"layout":{"wideSize":"100vw","contentSize":"100vw"}} -->
<main class="wp-block-group" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-content {"layout":{"inherit":true}} /--></main>
<!-- /wp:group -->

<!-- wp:group {"layout":{"wideSize":"100vw","contentSize":"840px"}} -->
<div class="wp-block-group"><!-- wp:post-comments /--></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","className":"site-footer-container"} /-->
21 changes: 7 additions & 14 deletions theme/block-templates/page.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
<!-- wp:template-part {"slug":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"20px","bottom":"30px","left":"20px"}}},"layout":{"inherit":true}} -->
<div class="wp-block-group" style="padding-right:20px;padding-bottom:30px;padding-left:20px">
<!-- wp:post-title {"textAlign":"left","level":1} /-->
<!-- wp:post-featured-image /-->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"7em","right":"0px","bottom":"0px","left":"0px"}}},"layout":{"wideSize":"100vw","contentSize":"840px"}} -->
<div class="wp-block-group" style="padding-top:7em;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-title {"textAlign":"left","level":1,"className":"mdc-typography mdc-typography\u002d\u002dheadline2 entry-title"} /-->

<!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-featured-image /--></div>
<!-- /wp:group -->

<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group">
<!-- wp:post-content {"layout":{"inherit":true}} /-->
</main>
<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<main class="wp-block-group" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-content {"layout":{"inherit":true}} /--></main>
<!-- /wp:group -->

<!-- wp:group {"layout":{"inherit":true}} -->
<!-- wp:group {"layout":{"wideSize":"100vw","contentSize":"840px"}} -->
<div class="wp-block-group"><!-- wp:post-comments /--></div>
<!-- /wp:group -->

Expand Down
7 changes: 7 additions & 0 deletions theme/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
"page",
"post"
]
},
{
"name": "page-no-title",
"title": "Page (No Title)",
"postTypes": [
"page"
]
}
],
"templateParts": [
Expand Down

0 comments on commit bc106fb

Please sign in to comment.