Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 731 Bytes

variables.md

File metadata and controls

16 lines (13 loc) · 731 Bytes

Variables

The following variables can be used on pages:

  • page: The page name
  • config: Contents of the settings.ini file in this repository (a configparser object)
  • locale: Locale code of the page language
  • available_locales: Locale codes of all languages available for this page
  • site_url: URL at which the website is served. The value is taken from settings.ini (general/siteurl) during static generation and is equal to the test server URL (normally http://localhost:5000) when working with the test server.

Prev: Static content (static) | Up: Home | Next: Custom filters