CLI
Pages with Siteglide CLI
2min
when the admin builds a page, it adds important metadata if you add pages locally, you'll need to add this data pages must be stored within the following file path of your project marketplace builder/views/pages/ and must be liquid file type example this is an example page generated by siteglide below, we'll list available yml parameters, and body content the yml section of the page is marked by triple dashes above and below everything below is the main body of the page, in liquid language yml is very strict about spaces and tabs always use two spaces instead of a tab in yml \ slug a site page layout name templates/1 metadata name my first page file type page last edit 1550810046465 meta title my site my first page meta desc here's some text to show in search engine og title my site my first page og desc here's some text to show in search engine og type article twitter type app enabled true physical file path views/pages/a site page liquid redirect to '/' redirect code 301 searchable true \ {% include 'modules/siteglide system/constants' %} \<! page content here > parameters slug this is the page url must be unique siteglide admin handles this when editing pages there, but we obviously have little control over that here, so it's up to the user to maintain for now (we can add validation later) shouldn't ever be '/', as that's reserved by homepage if you need to set it as homepage you'll have to do via ui for now (required) layout name reference your template here stored at > marketplace builder/views/layouts/templates/1 liquid metadata name page name shown in ui (required) note this must be a string file type set as 'page' (required) last edit timestamp of last edit shown in ui meta title used in page title meta desc used as meta description og title used in page data for sharing link og desc used in page data for sharing link og type defines page content type for sharing link twitter type defines page content type for twitter sharing link enabled if the page is visible on the front end use siteglide js set as 'false' to supress the siteglide js file from being included in your page note this will stop forms from submitting, only turn this off on pages that do not include forms currently this does not work for the homepage of your site physical file path files should be stored in a location relative to their slug if your slug is /services/cleaning, then the physical file path would be views/pages/services/cleaning liquid redirect to the slug to redirect to, if it needs it if it's homepage, you need to redirect to '/' redirect code set as '301' if there's a redirect searchable set as 'true' so it shows in search results body must include the constants snippet shown in example for features like seo and secure zones to work