Follow

Statiked Variables

site.time:

Time of last publish 

site.pages:

Tist of all pages in root directory

site.posts:

A reverse cronological list of all posts

site.CATEGORY:

A reverse cronological list of all Categories available in posts. The Categories in latest post have a higher priority in list.

site.CATEGORY.category:

A reverse cronological list of all posts that belong to a category "category"

site.TAG:

A reverse cronological list of all Tags available in posts. The Tags in latest post have a higher priority in list.   

site.TAG.tag:

A reverse cronological list of all posts that belong to a tag "tag"    

site.url:

Domain url for site. To preview site on local machine set site.url as '.'

site.config_date:

All the variables available in _config.yml are stored as site variables.

site.title:

Title for site.

site.subtitle:

Subtitle for site.

site.author:

Name of site author.

site.email:

Email-id for site or site-author.

site.description:

Description of site.

Post Variables

post.content:

Content of markdown file rendered to HTML.

post.title:

Title of post.

post.excerpt:

The un-rendered excerpt of the post.

post.url:

URL of post without the domain with a leading slash, based on permalink style.

post.date:

Creation date of post.
Use {{ post.date | date_format:"dd MM yyyy" }} to output post.date in preferred format.

post.categories:

Categories that a post belongs to as stated in YAML front-matter.

post.tags:

Tags that a post is stamped with in YAML front-matter.

post.status:

"Published" or "Not Published" status of post.

Paginator Variables

paginator.posts:

Posts available for that page.

paginator.previous_page:

Index of previous page.

paginator.next_page:

Index of next page.

paginator.current_page:

Index of current page.

0 Comments

Please sign in to leave a comment.
Powered by Zendesk