File tree 11 files changed +24
-3
lines changed
11 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 81
81
- [ Rabin Adhikari] ( https://github.com/rabinadk1/ )
82
82
- [ Hussaini Zulkifli] ( https://github.com/hussaini/ )
83
83
- [ Ellison Leão] ( https://github.com/ellisonleao )
84
- - [ Lucas de Oliveira] ( https://github.com/lucas-dOliveira )
84
+ - [ Lucas de Oliveira] ( https://github.com/lucas-dOliveira )
85
+ - [ earnest ma] ( https://github.com/earnestma )
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ draft = true
3
3
date = {{ .Date }}
4
4
title = ""
5
5
description = ""
6
- slug = ""
6
+ slug = ""
7
+ authors = [ ]
7
8
tags = [ ]
8
9
categories = [ ]
9
10
externalLink = ""
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ disqusShortname = "yourdiscussshortname"
80
80
category = " categories"
81
81
series = " series"
82
82
tag = " tags"
83
+ author = " authors"
83
84
84
85
[[params .social ]]
85
86
name = " Github"
Original file line number Diff line number Diff line change 1
1
+++
2
2
date = "2014-09-28"
3
3
title = "Creating a New Theme"
4
- slug = "creating-a-new-theme"
4
+ slug = "creating-a-new-theme"
5
5
tags = [ ]
6
6
categories = [ ]
7
7
series = [ "Theme", "Hugo"]
8
+ authors = [ "John Doe"]
8
9
+++
9
10
10
11
## Introduction
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ title = "Dummy"
4
4
slug = "dummy"
5
5
tags = [ "hugo", "i18n"]
6
6
categories = [ "blog"]
7
+ authors = [ "Translation test"]
7
8
+++
8
9
9
10
Nada para ver aqui!
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ categories = [
12
12
]
13
13
externalLink = " https://github.com/luizdepra/hugo-coder/wiki"
14
14
series = [" Hugo" ]
15
+ authors = [" External link test" ]
15
16
+++
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ categories = [
14
14
" golang" ,
15
15
]
16
16
series = [" Getting Started" , " Hugo" ]
17
+ authors = [" Jane Smith" ]
17
18
+++
18
19
19
20
Hugo uses the excellent [ go] [ ] [ html/template] [ gohtmltemplate ] library for
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ description = "The post demonstrates features of the coder theme."
5
5
images = [" /images/N90.jpg" ]
6
6
math = true
7
7
series = [" Theme" , " Hugo" ]
8
+ authors = [" John Doe" , " Jane Smith" ]
8
9
+++
9
10
10
11
## Style Demo
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ other = "tag"
7
7
[series ]
8
8
other = " series"
9
9
10
+ [author ]
11
+ other = " author"
12
+
10
13
[reading_time ]
11
14
one = " One-minute read"
12
15
other = " {{ .Count }}-minute read"
Original file line number Diff line number Diff line change
1
+ < div class ="authors ">
2
+ < i class ="fa fa-user " aria-hidden ="true "> </ i >
3
+ {{- range $index, $el := . -}}
4
+ {{- if gt $index 0 }}
5
+ < span class ="separator "> •</ span >
6
+ {{- end }}
7
+ < a href ="{{ ( printf "authors /%s/" ( . | urlize ) ) | relLangURL }}"> {{ . }}</ a >
8
+ {{- end -}}
9
+ </ div >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ <h1 class="title">{{ .Title }}</h1>
21
21
{{ i18n "reading_time" .ReadingTime }}
22
22
</ span >
23
23
</ div >
24
+ {{ with .Page.Params.Authors }}{{ partial "taxonomy/authors.html" . }}{{ end }}
24
25
{{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
25
26
{{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
26
27
</ div >
You can’t perform that action at this time.
0 commit comments