Template Variables

Specific to Stacks Bootstrap 5 theme, use template variables that get replaced by their respective value during preview and publishing.

Bootstrap 5 Theme & Stacks support a couple of useful template variables that get replaced by their respective value during preview and publishing

  • Use any of these template variables within your content to insert the respective value or object
  • Those template variables are separate from similar custom template variables being used in combination with StackApps Cell stack
  • Most template variables like %​site_title​% or %​page_title​% are set either in the Stacks Site and Page Settings or in the Bootstrap Theme Settings
  • Other settings like %​nav​%, %​navigation​% or %​breadcrumb​% are generated by the Bootstrap 5 Theme dynamically based on the site structure

*[percent] Template Variables

Variable Name Variable Example
Site Logo %​logo% %logo%
Site Title %​site_title% %site_title%
Site Slogan %​site_slogan% %site_slogan%
Page Title %​page_title% or %​title% %page_title%
Footer %​footer% %footer%
Page Link [​[page name]] Colors
Page Link (with a new name) [​[page name|new page name]] Color Cheat Sheet
Page URL [​[​[page name]]] /bootstrap-5/colors/index.php
Base URL %​base_url% %base_url%
Breadcrumb %​breadcrumb% %breadcrumb%
Navigation %​navigation% %navigation%
Nav %​nav% %nav%