Fix about section to pull author name correctly (#114)
Signed-off-by: Emruz Hossain <emruz@appscode.com>
This commit is contained in:
parent
5d165e10c4
commit
52fbd819a4
1 changed files with 6 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue