Merge pull request #159 from szpak/enableBioImage
enableBioImage to manage bio image in home page sidebar
This commit is contained in:
		
						commit
						95cf4c1132
					
				|  | @ -270,7 +270,8 @@ organization = "Hugo" | ||||||
| link = "https://github.com/zzossig/hugo-theme-zzo" | link = "https://github.com/zzossig/hugo-theme-zzo" | ||||||
| 
 | 
 | ||||||
| # sidebar | # 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. | enableSidebar = true # Set to false to create the full width of the content. | ||||||
| enableSidebarTags = true # if you want to use tags. | enableSidebarTags = true # if you want to use tags. | ||||||
| enableSidebarSeries = true | enableSidebarSeries = true | ||||||
|  |  | ||||||
|  | @ -278,7 +278,8 @@ organization = "Hugo" | ||||||
| link = "https://github.com/zzossig/hugo-theme-zzo" | link = "https://github.com/zzossig/hugo-theme-zzo" | ||||||
| 
 | 
 | ||||||
| # sidebar | # 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. | enableSidebar = true # Set to false to create the full width of the content. | ||||||
| enableSidebarTags = true # if you want to use tags. | enableSidebarTags = true # if you want to use tags. | ||||||
| enableSidebarSeries = true | enableSidebarSeries = true | ||||||
|  |  | ||||||
|  | @ -41,6 +41,7 @@ link = "https://zzossig.io/ko" | ||||||
| 
 | 
 | ||||||
| # sidebar | # sidebar | ||||||
| enableBio = true | enableBio = true | ||||||
|  | enableBioImage = true | ||||||
| enableSidebar = true | enableSidebar = true | ||||||
| enableSidebarTags = true | enableSidebarTags = true | ||||||
| enableSidebarSeries = true | enableSidebarSeries = true | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| {{ if $.Param "enableBio" }} | {{ if $.Param "enableBio" }} | ||||||
| <section class="bio" data-dir="{{ $.Param "languagedir" | default "ltr" }}"> | <section class="bio" data-dir="{{ $.Param "languagedir" | default "ltr" }}"> | ||||||
|  |   {{ if ($.Param "enableBioImage" | default true) }} | ||||||
|   <hr class="hr-slash bio-hr"/> |   <hr class="hr-slash bio-hr"/> | ||||||
|   <div class="bio__photo-wrapper"> |   <div class="bio__photo-wrapper"> | ||||||
|     {{ $src := "" }} |     {{ $src := "" }} | ||||||
|  | @ -20,6 +21,7 @@ | ||||||
|       {{ end }}      |       {{ end }}      | ||||||
|     {{ end }} |     {{ end }} | ||||||
|   </div> |   </div> | ||||||
|  |   {{ end }} | ||||||
|   <hr class="hr-slash bio-hr"/> |   <hr class="hr-slash bio-hr"/> | ||||||
|   <div class="bio__name"> |   <div class="bio__name"> | ||||||
|     {{ $.Param "myname" }} |     {{ $.Param "myname" }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 zzossig
						zzossig