Skip to content

Instantly share code, notes, and snippets.

@youxiachai
Created April 5, 2013 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youxiachai/5317878 to your computer and use it in GitHub Desktop.
Save youxiachai/5317878 to your computer and use it in GitHub Desktop.
hexo 主题列表:Page对象 : 模板:layout,archive ,category ,index,tag
{
"base": "/",
"per_page": 10,
"total": 1,
"current": 1,
"current_url": "",
"posts": {
"_name": "posts",
"_parent": {
"_store": {},
"_source": "D:\\hexo11/db.json"
},
"_store": {},
"_index": [
1,
2
],
"_schema": {
"_schema": {
"id": {
"default": 0
},
"title": {
"default": ""
},
"date": {},
"updated": {},
"categories": {
"default": [],
"nested": [
{
"default": 0
}
]
},
"tags": {
"default": [],
"nested": [
{
"default": 0
}
]
},
"comments": {
"default": true
},
"layout": {
"default": "post"
},
"content": {
"default": ""
},
"excerpt": {
"default": 0
},
"source": {
"default": ""
},
"slug": {
"default": ""
},
"ctime": {},
"mtime": {}
},
"_virtuals": {
"categories": {},
"tags": {},
"date": {},
"path": {},
"updated": {},
"permalink": {},
"ctime": {},
"mtime": {},
"excerpt": {},
"full_path": {}
},
"methods": {}
},
"length": 2
},
"archive": false,
"year": null,
"month": null,
"category": null,
"tag": "",
"prev": 0,
"prev_link": "",
"next": 0,
"next_link": ""
}
@youxiachai
Copy link
Author

example :
<%= page.base %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment