Skip to content

Commit a616437

Browse files
committed
Linkify Author name to article list
Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
1 parent e4542e1 commit a616437

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/layouts/post/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ <h1 class="text--white">{{ .Title }}</h1>
4545
</div>
4646
<div class="author-name col-4-5">
4747
{{ if $author.name }}
48-
{{ $author.name }}
48+
<a href="/authors/{{ $name }}/">{{ $author.name }}</a>
4949
{{ else }}
5050
{{ $name }}
5151
{{ end }}
5252
{{ if $author.twitter }}
53-
<a class="author-twitter" href="https://twitter.com/{{ $author.twitter }}">@{{ $author.twitter }}</a>
53+
(<a class="author-twitter" href="https://twitter.com/{{ $author.twitter }}">@{{ $author.twitter }}</a>)
5454
{{ end }}
5555
</div>
5656
</section>

0 commit comments

Comments
 (0)