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

Commit

Permalink
Merge pull request #486 from WordPress/make/home-pattern
Browse files Browse the repository at this point in the history
Make the default home page a pattern so it can be switched back to
  • Loading branch information
MaggieCabrera authored Sep 25, 2023
2 parents ca6e6a0 + dc296ff commit 5622863
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
23 changes: 23 additions & 0 deletions patterns/template-home-business.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* Title: Business Home Template
* Slug: twentytwentyfour/template-home
* Template Types: front-page, index, home
* Viewport width: 1400
* Inserter: no
*/
?>

<!-- wp:group {"style":{"position":{"type":"sticky","top":"0px"}},"layout":{"type":"default"}} -->
<div class="wp-block-group">
<!-- wp:template-part {"slug":"header"} /-->
</div>
<!-- /wp:group -->

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"default"}} -->
<main class="wp-block-group" style="margin-top:0">
<!-- wp:pattern {"slug":"twentytwentyfour/home"} /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /-->
2 changes: 1 addition & 1 deletion patterns/template-home-portfolio.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Title: Portfolio Template
* Title: Portfolio Home Template
* Slug: twentytwentyfour/template-home-portfolio
* Template Types: front-page, index, home, page
* Viewport width: 1400
Expand Down
2 changes: 1 addition & 1 deletion patterns/template-home-writer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Title: Writer Template
* Title: Writer Home Template
* Slug: twentytwentyfour/template-home-writer
* Template Types: front-page, index, home, page
* Viewport width: 1400
Expand Down
14 changes: 1 addition & 13 deletions templates/home.html
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
<!-- wp:group {"style":{"position":{"type":"sticky","top":"0px"}},"layout":{"type":"default"}} -->
<div class="wp-block-group">
<!-- wp:template-part {"slug":"header"} /-->
</div>
<!-- /wp:group -->

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0","margin":{"top":"0"}}},"layout":{"type":"default"}} -->
<main class="wp-block-group" style="margin-top:0">
<!-- wp:pattern {"slug":"twentytwentyfour/home"} /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/template-home"} /-->

0 comments on commit 5622863

Please sign in to comment.