Forráskód Böngészése

Add ability to add scripts to projects

Apis Necros 2 éve
szülő
commit
bf6556e9d8
1 módosított fájl, 4 hozzáadás és 0 törlés
  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 }}