Merge pull request #159 from szpak/enableBioImage

enableBioImage to manage bio image in home page sidebar
This commit is contained in:
zzossig 2020-02-11 09:05:32 +09:00 committed by GitHub
commit 95cf4c1132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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" }}