Commit cb798bec authored by Kaushal Modi's avatar Kaushal Modi

Minor refactoring: list -> slice

parent f0329859
......@@ -4,8 +4,8 @@
{{ $site_author := . }}
{{ with $page_author }}
{{ $author_type := (printf "%T" .) }}
{{ $author_is_list := (eq "[]string" $author_type) }}
{{ if $author_is_list }}
{{ $author_is_slice := (eq "[]string" $author_type) }}
{{ if $author_is_slice }}
{{ range . }}
{{ if (eq $site_author .) }}
<a href="{{ $.Site.BaseURL }}" class="u-author hide">{{ . }}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment