Page
Configuration in the page's
Front-matter
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 pageFirst 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
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": [
...
]
},
...
]
First create the page,
hexo new page photography
Go to
source/photography/index.md
,Set up Front-matter
title:
layout: photography
sidebar: false
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 photophoto
Original Phototitle
Titleplace
PlaceLast modified 1yr ago