Skip to content

Commit

Permalink
Blueprint for theme starter content option (#77)
Browse files Browse the repository at this point in the history
Fixed #60 

- Installs a theme with the option to install starter content, like
Twenty-Twenty-One
- User lands on the homepage
- Add blueprint to gallery
  • Loading branch information
bph authored Nov 13, 2024
1 parent accdc69 commit 36e0dd5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Here's the list of all the community Blueprints submitted to this repository. Se
| Grid Variations Experiments enabled | Blueprint example to toggle on enable a feature from the Experiments page in Gutenberg plugin | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/grid-variations/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json) |
| Install WordPress language packs | Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/ – both for WordPress core and for the friends plugin. | [@adamziel](https://github.com/adamziel) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/translations/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json) |
| Install plugin from a gist | Install and activate a WordPress plugin from a .php file stored in a gist. | [@zieladam](https://github.com/zieladam) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) |
| Import Theme Starter Content |Blueprint to install a theme with starter content, (here: Twenty-Twenty-One) | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/themestartercontent/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/themestartercontent/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/themestartercontent/blueprint.json) |
| Latest Gutenberg plugin | A preview of the latest version of the Gutenberg plugin. | [@zieladam](https://github.com/zieladam) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/latest-gutenberg/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) |
| Loading, activating, and configuring a theme from a GitHub repository. | This is a good example of typical steps used on a theme's loading, activation and configuration | [@richtabor](https://github.com/richtabor) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json) |
| Login as an editor | Test WordPress functionality as an editor rather than an administrator. | [@bacoords](https://github.com/bacoords) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/login-as-editor/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/login-as-editor/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/login-as-editor/blueprint.json) |
Expand Down
27 changes: 27 additions & 0 deletions blueprints/themestartercontent/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Import Theme Starter Content",
"author": "bph",
"description": "Blueprint to install a theme with starter content, (here: Twenty-Twenty-One)",
"categories": ["Themes", "Starter Content"]
},
"landingPage": "/",
"features": {
"networking": true
},
"steps": [
{
"step": "installTheme",
"themeData": {
"resource": "wordpress.org/themes",
"slug": "twentytwentyone"
},
"options": {
"activate": true,
"importStarterContent": true
}
}

]
}

0 comments on commit 36e0dd5

Please sign in to comment.