Variables can be used in theme templates.

Config

Global config variables

Variable Description
config.title website title
config.description website description
config.url website url
config.user GitHub username
config.repository GitHub repository

Page

Post template variables

Variable Description Type
page.id post id Number
page.created post created date Time String
page.updated post updated date Time String
page.prev previous post id Number
page.next next post id Number
page.title post title String
page.url post url URL String
page.author post author name, avatar, url Object
page.excerpt post excerpt html String
page.raw original markdown data of page markdown String
page.content post content html String
page.category post category id, name, url Object
page.tags post tags id, name, url Array
page.type page types, current is post String

Page template variables

Variable Description Type
page.id page id Number
page.created page created date Time String
page.updated page updated date Time String
page.title page title String
page.url page url URL String
page.name page name String
page.raw page origin markdown data markdown String
page.content page content html String
page.type page types, current is page String

Pagination template variables

Variable Description Type
page.base base url URL String
page.title current page title String
page.prev previous page url URL String
page.next next page url URL String
page.posts page posts list Array
page.current current page number Number
page.total total page number Number
page.type page types, index, category or tag String

In categories template the page variable is Array, it's item attributes list bellow

Variable Description Type
id category id Number
name category name String
url category url URL String
type page types, current is categories String
posts post ids belong to current category Array

In tags template the page variable is Array, it's item attributes list bellow

Variable Description Type
id tag id Number
name tag name String
url tag url URL String
type page types, current is tags String
posts posts ids belong to current tag Array

Contents