Actor <- Taxonomy 分类
Bruce Willis <- Term 条目
The Sixth Sense <- Value 值
Unbreakable <- Value 值
Moonrise Kingdom <- Value 值
Samuel L. Jackson <- Term 条目
Unbreakable <- Value 值
The Avengers <- Value 值
xXx <- Value 值
从内容的角度看, 关系会以不同方式出现, 虽然数据和标记使用的都一样:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Unbreakable <- Value 值
Actors <- Taxonomy 分类
Bruce Willis <- Term 值
Samuel L. Jackson <- Term 值
Director <- Taxonomy 分类
M. Night Shyamalan <- Term 值
...
Moonrise Kingdom <- Value 值
Actors <- Taxonomy 分类
Bruce Willis <- Term 值
Bill Murray <- Term 值
Director <- Taxonomy 分类
Wes Anderson <- Term 值
...
给内容赋值标签通过前言设定 front matter内设定。 简单的使用标签的复数形式(英语)作为变量, 赋值所有想对内容实例应用的条目作为标签的值.
例子: 前言设定标签
1
2
3
4
5
6
7
8
9
10
11
12
categories:- Developmentproject_url:https://github.com/gohugoio/hugoseries:- Go Web Devslug:hugotags:- Development- Go- fast- Bloggingtitle: 'Hugo:A fast and flexible static site generator'
1
2
3
4
5
6
categories=['Development']project_url='https://github.com/gohugoio/hugo'series=['Go Web Dev']slug='hugo'tags=['Development','Go','fast','Blogging']title='Hugo: A fast and flexible static site generator'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{"categories":["Development"],"project_url":"https://github.com/gohugoio/hugo","series":["Go Web Dev"],"slug":"hugo","tags":["Development","Go","fast","Blogging"],"title":"Hugo: A fast and flexible static site generator"}