diff --git a/.gitignore b/.gitignore index 2671cbe..ca94588 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,6 @@ hugo.linux # Temporary lock file while building /.hugo_build.lock -# Generated CSS files +# Generated CSS/JS files **/*.min.css +**/*.min.js diff --git a/.gitmodules b/.gitmodules index c3b9133..497aa0e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,11 +1,12 @@ [submodule "static/font/RobotoMono"] path = static/font/RobotoMono url = https://github.com/googlefonts/RobotoMono.git - [submodule "static/css/animate.css"] path = static/css/animate.css url = https://github.com/animate-css/animate.css.git - [submodule "static/css/terminal.css"] path = static/css/terminal.css url = https://github.com/Gioni06/terminal.css.git +[submodule "static/js/masonry"] + path = static/js/masonry + url = https://github.com/desandro/masonry.git diff --git a/Makefile b/Makefile index d6317fe..7f7161b 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,21 @@ .PHONY: all css-animate css-terminal css clean-submodules clean -all: css clean +all: css js clean css: css-animate css-terminal css-animate: - cd static/css/animate.css && yarn install && yarn run prod cp static/css/animate.css/animate.min.css static/css/animate.min.css css-terminal: cd static/css/terminal.css && npm run build cp static/css/terminal.css/dist/terminal.min.css static/css/terminal.min.css +js: js-masonry + +js-masonry: + cp static/js/masonry/dist/masonry.pkgd.min.js static/js/masonry.min.js + clean-submodules: git submodule foreach --recursive 'git reset --hard' diff --git a/static/js/masonry b/static/js/masonry new file mode 160000 index 0000000..3b0883c --- /dev/null +++ b/static/js/masonry @@ -0,0 +1 @@ +Subproject commit 3b0883cf4a4a046896719b9cf282ea74be7ffecd