set default values for FullWidthTheme and CenterTheme. fixes 278
This commit is contained in:
		
							parent
							
								
									b11b5bf012
								
							
						
					
					
						commit
						a3dd8c11f0
					
				| @ -7,7 +7,7 @@ | |||||||
|   {{ partial "head.html" . }} |   {{ partial "head.html" . }} | ||||||
| </head> | </head> | ||||||
| <body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}"> | <body class="{{- ( or .Params.color $.Site.Params.ThemeColor ) -}}"> | ||||||
| {{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }} | {{ $container := cond ($.Site.Params.FullWidthTheme | default false) "container full" (cond ($.Site.Params.CenterTheme | default false) "container center" "container") }} | ||||||
| 
 | 
 | ||||||
| <div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}"> | <div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}"> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user