From b216fbd24d87a3d072670d9add387820680af2b4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 1 Dec 2018 20:43:35 +0000 Subject: [PATCH] Avoid duplication of .min extension --- layouts/_default/baseof.html | 6 +++--- scripts/build.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ef4eb34..16da53c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -28,10 +28,10 @@ {{ partial "footer.html" . }} - {{ partial "script.html" "js/jquery.min.js" }} + {{ partial "script.html" "js/jquery.js" }} {{ partial "script_async.html" "js/lightgallery.js" }} - {{ partial "script_async.html" "js/bootstrap.min.js" }} - {{ partial "script_async.html" "js/mermaid.min.js" }} + {{ partial "script_async.html" "js/bootstrap.js" }} + {{ partial "script_async.html" "js/mermaid.js" }} {{ partial "script_async.html" "js/app.js" }} diff --git a/scripts/build.sh b/scripts/build.sh index 0f4f929..3f9bcc9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -14,10 +14,10 @@ cp -r $BASEDIR/node_modules/lightgallery/dist/img/* $STATIC_BUILD/img cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/css/all.min.css $STATIC_BUILD/css/font-awesome.min.css cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts $STATIC_BUILD -cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.min.js +cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.js cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery.js $STATIC_BUILD/js/lightgallery.js -cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.min.js -cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.min.js +cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.js +cp $BASEDIR/node_modules/mermaid/dist/mermaid.min.js $STATIC_BUILD/js/mermaid.js browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js cp -r $STATIC_SRC/scss $STATIC_BUILD/scss