Fix about section to pull author name correctly
This commit is contained in:
parent
5d165e10c4
commit
2bc5becbfe
1 changed files with 7 additions and 1 deletions
|
@ -1,13 +1,19 @@
|
|||
|
||||
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
||||
{{ if .section.id }}
|
||||
{{ $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