From 3a043806298037d79402ebf4dd4460abb55407cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Mon, 10 Feb 2020 17:07:01 +0100 Subject: [PATCH] enableBioImage to manage bio image in home page sidebar Image is still enabled by default. --- README.ko.md | 3 ++- README.md | 3 ++- exampleSite/config/_default/params.toml | 1 + layouts/partials/sidebar/site-bio.html | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) 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" }}