Skip to content

Commit

Permalink
Content: Add blocks page template.
Browse files Browse the repository at this point in the history
The page is not public yet, but adding the template allows for previewing the content in the correct page template it will launch in. This also adds the page to the `$new_theme_pages` list to prevent displaying in-progress content.

See #245.
  • Loading branch information
ryelle committed Aug 11, 2023
1 parent dda0f16 commit 9db1c09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/wp-content/mu-plugins/theme-switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function should_use_new_theme() {
'/about/etiquette/',
'/about/swag/',
'/about/logos/',
'/blocks/',
'/remembers/',
);
if ( ! in_array( $request_uri, $new_theme_pages ) ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- wp:wporg/global-header /-->

<!-- wp:group {"tagName":"main","layout":{"inherit":true},"className":"entry-content","style":{"spacing":{"blockGap":"0px"}}} -->
<main class="wp-block-group entry-content">
<!-- wp:pattern {"slug":"wporg-main-2022/blocks"} /-->
</main>
<!-- /wp:group -->

<!-- wp:wporg/global-footer /-->

0 comments on commit 9db1c09

Please sign in to comment.