소스 검색

Add ability to add scripts to projects

Apis Necros 2 년 전
부모
커밋
bf6556e9d8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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 }}