Page
Default
First create the page,
hexo new page xxx
Go to source/xxx/index.md
,Set up Front-matter
title:
comment: true # or false
Setting the comment
to true
will open the comment plugin of the page
Friends Links
First create the page,
hexo new page friends
Go to source/friends/index.md
,Set up Front-matter
title:
layout: friends
comment: true # or false
Create data, refer to Data Files
Create source/_data/friends.json
,The format is as follows
[
{
"category": "Category 1",
"data": [
{
"name": "xxx",
"url": "https://xxx.com/"
},
{
"name": "xxx",
"url": "https://xxx.com/"
}
]
},
{
"category": "Category 2",
"data": [
...
]
},
...
]
Photography Page
First create the page,
hexo new page photography
Go to source/photography/index.md
,Set up Front-matter
title:
layout: photography
sidebar: false
Create data, refer to Data Files
Create source/_data/photography.json
,The format is as follows
[
{
"thumbnail": "https://thumbnail.jpg",
"photo": "https://photo.jpg",
"title": "This is title.",
"icon": "camera",
"place": "China"
},
{
"thumbnail": "https://thumbnail.jpg",
"photo": "https://photo.jpg",
"title": "This is title.",
"icon": "camera",
"place": "China"
},
...
]
thumbnail
Thumbnail photo
photo
Original Photo
title
Title
icon
field is base on Ionicons
place
Place
最后更新于