When you select the "Document Type with Template" option while creating a Document Type in Umbraco, it automatically generates a corresponding template for that Document Type. This feature simplifies the process of creating and managing content in Umbraco.
- Go to Settings.
- Expand the Templates folder in the Templating section of the tree. You should see a template titled HomePage.
- Open the template. It will contain a little bit of Razor code.
- Home Page Template
- Leaving the code that's there (if you don't understand it, don't worry!) let's copy our template code in.
- We are using files from the Custom Umbraco Template.
- Open the Custom Umbraco Template folder and copy the contents of index.html.
- Paste the content into the HomePage template below the closing curly brace "}".
Umbraco Templates uses Razor which allows you to add code to your Template files. Razor reacts to @ signs.
- Click Save.