Skip to content

Commit 830c51a

Browse files
authored
Fix author name case sensetive issue (#509)
Signed-off-by: mohin7 <[email protected]>
1 parent ca77c9d commit 830c51a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/_default/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1 class="is-ellipsis-3" data-aos="fade-up" data-aos-duration="500" title="{{ $
3232
<!-- author start -->
3333
{{ range $authorName := $p.Params.authors }}
3434
{{ range site.Data.authors }}
35-
{{ if eq .name $authorName}}
35+
{{ if eq (lower .name) (lower $authorName) }}
3636
<div class="author">
3737
<a href="{{$.Site.Params.basePath}}authors/{{ .name | urlize }}" class="author-image"><img
3838
src="{{$.Site.Params.basePath}}{{ .profile }}"

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 data-aos="fade-up" data-aos-duration="500">{{ .Title }}</h1>
2929
<div class="is-flex authors">
3030
{{ range $authorName := .Params.authors }}
3131
{{ range site.Data.authors }}
32-
{{ if eq .name $authorName}}
32+
{{ if eq (lower .name) (lower $authorName) }}
3333
<div class="author">
3434
<a href="{{$.Site.Params.basePath}}authors/{{ .name | urlize }}" class="author-image"><img
3535
src="{{$.Site.Params.basePath}}{{.profile}}"

0 commit comments

Comments
 (0)