Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.
Erin Dalzell edited this page Mar 23, 2016 · 2 revisions
Global Variables*
v1                      ?   v2
-----------------------------------------------
current_date                
                        +   current_uri
current_url             =   current_url
environment                 
                        +   get
                        +   get_post
homepage                    
is_admin                =   {{ user:is role="admin" }}
is_{environment_name}       
last_modified           =   last_modified
last_segment            =   last_segment
                        +   locale
logged_in               =   logged_in
next                    ~   {{ collection:next }} or {{ pages:next }}   
now                     =   now
page_url                ~   {{ url }}   
permalink               =   permalink
                        +   post
prev                    ~   {{ collection:prev }} or {{ pages:prev }}   
                        +   response_code
segment_x               =   segment_x
taxonomy_name           ~   name (when on a taxonomy route)    
taxonomy_slug           ~   slug (when on a taxonomy route)    
theme_path                  
username                ~   name (when you're in a user tag)    
_site_name              ~   you can define a global  
_site_root                  
_site_url               ~   site_url
                        +   xml_header
Clone this wiki locally