This is a basic blog starter project for creating Craft CMS using the native Twig templating language. It's a simple install that requires no database dump and no front-end tooling. It includes a single, first-party plugin (CKeditor) to support a richer authoring experience.
Tip
Check out our full list of starter projects!
- Dedicated places to edit global information and the primary top-level pages (Home, Blog, and Guestbook);
- Blog and category feeds;
- Elegant content composition via CKEditor and nested entries;
- Front-end Guestbook form, protected by login;
- Arbitrary Pages structure for additional, hierarchical content;
- Preconfigured, Craft Cloud-ready asset storage;
The Entries sidebar has also been configured to make these pages and sections easier to find for this setup.
-
Clone this repository and move into the folder:
git clone https://github.com/craftcms/starter-twig.git cd starter-twig/
-
Start DDEV:
ddev start
-
Install dependencies:
ddev composer install
-
Run the Craft setup wizard:
ddev craft install
Congratulations—Craft has been installed! You can start exploring the control panel by visiting https://starter-twig.ddev.site/admin
in your browser, or running ddev launch admin
.
The Craft control panel is available at https://starter-twig.ddev.site/admin
. Log in with the username and password you created during installation!
- Create some content by visiting the Entries screen;
- Use Live Preview to visualize edits as you make them;
- Adjust or augment the content model by exploring the Settings screen;
- Open the front-end by clicking the site name in the upper-left corner;
Tip
You can always get back to the control panel by appending /admin
to the project’s base URL.
This project was scaffolded from our blank-slate started kit, and therefore follows its overall directory structure and configuration scheme.
The free Craft Solo edition is active by default, and will automatically acquire a perpetual license to evaluate, develop, and deploy a site for yourself or a friend. This key will be written out to config/license.key
, and is safe to commit to version control.
You can upgrade to Craft Team or Pro any time! Read more about licensing in the Knowledge Base.
The DDEV configuration files shipped with this project have a hard-coded project “name” that determines (among other things) the URL prefix. If you would like to change this (say, prior to pushing the project to a new remote), open .ddev/config.yml
and update the name
key.
Apply that change by running ddev start
in the project directory. The site will restart, and be available at https://{new-name}.ddev.site
!
When cloning a git repository, it typically sets up the origin as a default remote. To push the project to your own repository, follow these steps:
-
Remove the default origin:
git remote remove origin
-
Create a new repository. This can be on GitHub, or any other git provider.
-
Add the new origin:
git remote add origin https://github.com/your-username-or-org/new-repo-name.git
-
Push to the new origin:
git push origin
Tip
You may be able to create repositories in contexts that your local environment is not authorized to read from or write to! If you encounter permissions issues at this stage, consult the git provider’s documentation.
If you have any questions or suggestions, you can always reach us at [email protected] or post a GitHub issue.
Thanks for trying Craft!
🍋