Fix Learn theme addition to git
This commit is contained in:
7
themes/learn/layouts/shortcodes/siteparam.html
Normal file
7
themes/learn/layouts/shortcodes/siteparam.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{- $paramName := (.Get 0) -}}
|
||||
{{- $siteParams := .Site.Params -}}
|
||||
{{- with $paramName -}}
|
||||
{{- with $siteParams -}}
|
||||
{{- index . (lower $paramName) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user