fix: set config if toggle is enabled
| | |
| | | $bp-mobile : 500px; |
| | | |
| | | // Image |
| | | $image-background : url('{{ .Site.Params.visual.image.file | default "images/background.jpg" | absURL }}'); |
| | | $image-position : {{ .Site.Params.visual.image.position | default "center center" }}; |
| | | $image-background : {{ if .Site.Params.visual.image.enable }}url('{{ .Site.Params.visual.image.file | default "images/background.jpg" | absURL }}'){{ else }}none{{ end }}; |
| | | $image-position : {{ if .Site.Params.visual.image.enable }}{{ .Site.Params.visual.image.position | default "center center" }}{{ else }}0% 0%{{ end }}; |
| | | |
| | | // Animation |
| | | $animation-name : fadein; |