mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
8 lines
377 B
Go Template
8 lines
377 B
Go Template
|
{{- range .Site.Params.relearn.dependencies }}
|
||
|
{{- $has := printf "has%s" .name }}
|
||
|
{{- $disable := printf "disable%s" .name }}
|
||
|
{{- $wants := or (and (ne (index $.Params $disable) nil) (not (index $.Params $disable))) (and (ne (index $.Site.Params $disable) nil) (not (index $.Site.Params $disable))) }}
|
||
|
{{- if $wants }}
|
||
|
{{- $.Store.Set $has true }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|