{{ define "main" }} {{ .Content }} {{- range .Resources.Match "*.js" }} <script src="{{ .Permalink }}"></script> {{- end }} {{ end }}