Skip to content

Commit 45a0cf5

Browse files
committed
Generate pack.js on the fly
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 61dc26a commit 45a0cf5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

layouts/_default/baseof.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@
6060
<div class="stud"></div>
6161
</div>
6262
</footer>
63-
<script src="js/pack.js"></script>
63+
{{- $jquery := resources.Get "js/jquery-1.10.2.min.js" -}}
64+
{{- $fancybox := resources.Get "js/jquery.fancybox.js" -}}
65+
{{- $mousewheel := resources.Get "js/jquery.mousewheel.js" -}}
66+
{{- $js := slice $jquery $fancybox $mousewheel | resources.Concat "js/pack.js" }}
67+
<script src="{{ $js.RelPermalink }}"></script>
6468
<script>
6569
$(document).ready(function() {
6670
$(".fancybox-thumb").fancybox({

static/js/pack.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)