CLI
Includes with Siteglide CLI
2 min
includes are all of the following code snippet, content section, header, footer code snippets must be stored within the following file path of your project marketplace builder/views/partials/includes/code snippet/ and must be liquid file type content sections must be stored within the following file path of your project marketplace builder/views/partials/includes/content section/ and must be liquid file type headers must be stored within the following file path of your project marketplace builder/views/partials/includes/header/ and must be liquid file type footers must be stored within the following file path of your project marketplace builder/views/partials/includes/footer/ and must be liquid file type example this is an example include generated by siteglide below, we'll list available yml parameters, and body content \ metadata id 1 name main section file type content section physical file path views/partials/includes/content section/1 liquid \ \<! include content here > parameters metadata id used by ui to reference includes must be unique in the scope of that include type (i e you could have id=1 for both a header and footer) (required) name include name shown in ui (required) file type used to define where the include shows in ui options code snippet , content section , header , footer (required) last edit timestamp of last edit shown in ui physical file path files should be stored in a location relative to their id and file type if your id is '3', and file type is 'header', then the physical file path would be views/partials/includes/header/3 liquid