mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
8 lines
No EOL
377 B
Go Template
8 lines
No EOL
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 }} |