enableBioImage to manage bio image in home page sidebar

Image is still enabled by default.
This commit is contained in:
Marcin Zajączkowski 2020-02-10 17:07:01 +01:00
parent ff3c1ee455
commit 3a04380629
4 changed files with 7 additions and 2 deletions

View File

@ -270,7 +270,8 @@ organization = "Hugo"
link = "https://github.com/zzossig/hugo-theme-zzo"
# sidebar
enableBio = true # home page sidebar
enableBio = true # in home page sidebar
enableBioImage = true # in home page sidebar
enableSidebar = true # Set to false to create the full width of the content.
enableSidebarTags = true # if you want to use tags.
enableSidebarSeries = true

View File

@ -278,7 +278,8 @@ organization = "Hugo"
link = "https://github.com/zzossig/hugo-theme-zzo"
# sidebar
enableBio = true # home page sidebar
enableBio = true # in home page sidebar
enableBioImage = true # in home page sidebar
enableSidebar = true # Set to false to create the full width of the content.
enableSidebarTags = true # if you want to use tags.
enableSidebarSeries = true

View File

@ -41,6 +41,7 @@ link = "https://zzossig.io/ko"
# sidebar
enableBio = true
enableBioImage = true
enableSidebar = true
enableSidebarTags = true
enableSidebarSeries = true

View File

@ -1,5 +1,6 @@
{{ if $.Param "enableBio" }}
<section class="bio" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
{{ if ($.Param "enableBioImage" | default true) }}
<hr class="hr-slash bio-hr"/>
<div class="bio__photo-wrapper">
{{ $src := "" }}
@ -20,6 +21,7 @@
{{ end }}
{{ end }}
</div>
{{ end }}
<hr class="hr-slash bio-hr"/>
<div class="bio__name">
{{ $.Param "myname" }}