diff --git a/README.ko.md b/README.ko.md index 15336bd..7dbb980 100644 --- a/README.ko.md +++ b/README.ko.md @@ -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 diff --git a/README.md b/README.md index b64b1f0..14a0397 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 67a86bd..9391f7b 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -41,6 +41,7 @@ link = "https://zzossig.io/ko" # sidebar enableBio = true +enableBioImage = true enableSidebar = true enableSidebarTags = true enableSidebarSeries = true diff --git a/layouts/partials/sidebar/site-bio.html b/layouts/partials/sidebar/site-bio.html index e3bf3ce..b6abb81 100644 --- a/layouts/partials/sidebar/site-bio.html +++ b/layouts/partials/sidebar/site-bio.html @@ -1,5 +1,6 @@ {{ if $.Param "enableBio" }}
+ {{ if ($.Param "enableBioImage" | default true) }}
{{ $src := "" }} @@ -20,6 +21,7 @@ {{ end }} {{ end }}
+ {{ end }}
{{ $.Param "myname" }}