mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
21.34.2020 fa9e56007f66f4cf30795f4b901ed053eec3bd41
layouts/partials/head.html
@@ -28,12 +28,16 @@
    
    {{- $js := "" -}}
    {{- range .Site.Params.customJs -}}
      {{- $customJS := resources.Get . -}}
      {{- if $customJS -}}
        {{- if eq $js "" -}}
          {{- $js = $customJS -}}
        {{- else -}}
          {{- $js = slice $js $customJS | resources.Concat "js/custom.js" -}}
      {{- if or (in . "http://") (in . "https://")  -}}
      <script src="{{ . | relURL }}"></script>
      {{- else -}}
        {{- $customJS := resources.Get . -}}
        {{- if $customJS -}}
          {{- if eq $js "" -}}
            {{- $js = $customJS -}}
          {{- else -}}
            {{- $js = slice $js $customJS | resources.Concat "js/custom.js" -}}
          {{- end -}}
        {{- end -}}
      {{- end -}}
    {{- end -}}