Fix about section to pull author name correctly (#114)

Signed-off-by: Emruz Hossain <emruz@appscode.com>
This commit is contained in:
alex bezek 2020-10-21 01:02:00 -04:00 committed by GitHub
parent 5d165e10c4
commit 52fbd819a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,11 +3,16 @@
{{ $sectionID = .section.id }}
{{ end }}
{{ $author:= site.Data.author }}
{{ if (index site.Data site.Language.Lang).author }}
{{ $author = (index site.Data site.Language.Lang).author }}
{{ end }}
<div class="container anchor p-lg-5 about-section" id="{{ $sectionID }}">
<div class="row pt-sm-2 pt-md-4 align-self-center">
<!-- summary -->
<div class="col-sm-6">
<h3 class="p-1">{{ site.Params.author.name }}</h3>
<h3 class="p-1">{{ $author.name }}</h3>
{{ if .designation }}
<h5 class="p-1">
{{ .designation }}