Browse Source

Add ability to add scripts to projects

Apis Necros 2 years ago
parent
commit
bf6556e9d8
1 changed files with 4 additions and 0 deletions
  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 }}