![]() For example - layout with right column, layout with left and right column, layout without columns. It extends base.twig and is extended by templates of sections and categories.īy default, there is one layout file, but you can have multiple. This file contains basic markup scaffolding for your pages. At the beginning of the file there is HTML comment containing author info.endBody block can be used to append something to end of. head block can be used by pages to append something to section of website.It is used by every page existing on the website thanks to use of tag). This directory contains base HTML code of website. There is also _404.twig file that is used in case of 404 error and index.twig that can be used to browse theme when there are no sections set up in control panel yet - later it can be removed. Each directory name is prepended with _ - otherwise, Craft would make accessing them directly by entering their filenames as URL possible. Templates files are divided into four main directories: layouts, pages, components, and system. You will just need to activate this plugin through control panel. You can also just copy template or SCSS and gulp files to your already existing project.Īlong with Craft, there is also one plugin listed in composer.json file: Redactor which provides WYSIWYG field. Installation #Ĭlone files from the Github repository, open console and run composer install and craft setup. It can also be read as a guide for structuring Craft CMS project. This document describes each part of the starter theme - how it works and why specific solutions or approaches were used. Gulp config for compiling JS and CSS assets and running browsersync.Base CSS code with Bulma framework included. ![]() This is a starter theme for Craft CMS - it can be used as scaffolding for any project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |