Skip to content

Commit

Permalink
Add some site blocks to the default template
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Apr 8, 2021
1 parent 1a730f1 commit 7006394
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Post Editor Template mode Allow creating custom block templates in classic themes 1`] = `
"<h2 class=\\"wp-block-post-title\\">Another FSE Post</h2>
"<h1 class=\\"wp-block-site-title\\"><a href=\\"http://localhost:8889\\" rel=\\"home\\">gutenberg</a></h1>
<p class=\\"wp-block-site-tagline\\">Just another WordPress site</p>
<hr class=\\"wp-block-separator\\">
<h2 class=\\"wp-block-post-title\\">Another FSE Post</h2>
<div class=\\"entry-content wp-block-post-content\\">
<p>Hello World</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function PostTemplate() {
event.preventDefault();
const defaultTitle = __( 'Custom Template' );
const templateContent = [
createBlock( 'core/site-title' ),
createBlock( 'core/site-tagline' ),
createBlock( 'core/separator' ),
createBlock( 'core/post-title' ),
createBlock( 'core/post-content' ),
];
Expand Down

0 comments on commit 7006394

Please sign in to comment.