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

Make the default home page a pattern so it can be switched back to #486

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"} /-->