Explorar o código

Add ability to add scripts to projects

Apis Necros %!s(int64=2) %!d(string=hai) anos
pai
achega
bf6556e9d8
Modificáronse 1 ficheiros con 4 adicións e 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 }}