Fix-12 Hide unused sections if they are not defined in yaml
This commit is contained in:
parent
fb7b04dc93
commit
2a334d5eef
5 changed files with 11 additions and 10 deletions
|
@ -1,7 +1,8 @@
|
|||
|
||||
{{ if .Site.Data.about }}
|
||||
<div class="container-fluid about bg-white anchor p-md-5 d-flex" id="about">
|
||||
<div class="container">
|
||||
<div class="row pt-sm-2 pt-md-4 align-self-center">
|
||||
{{ if .Site.Data.about }}
|
||||
<!-- summery -->
|
||||
<div class="col-md-6">
|
||||
<h3 class="p-1">{{ .Site.Data.site.author.name }}</h3>
|
||||
|
@ -41,7 +42,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue