Explorar el Código

Add ability to add scripts to projects

Apis Necros hace 2 años
padre
commit
bf6556e9d8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      layouts/projects/single.html

+ 4 - 0
layouts/projects/single.html

@@ -1,4 +1,8 @@
 
 {{ define "main" }}
     {{ .Content }}
+    
+    {{- range .Resources.Match "*.js" }}
+    <script src="{{ .Permalink }}"></script>
+    {{- end }}
 {{ end }}