Add masonry

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-08-08 23:41:28 +02:00
parent 9d160b6890
commit 30f4d8d1e8
34 changed files with 328 additions and 9933 deletions

View File

@@ -1,8 +1,8 @@
.PHONY: default update update-inter update-photoswipe format
.PHONY: default update update-inter node-modules format
default:
default: node-modules
update: update-inter update-photoswipe format
update: update-inter format
update-inter:
@tmp_zip=$$(mktemp) && \
@@ -16,19 +16,10 @@ update-inter:
cp -r $$tmp_dir/web/{InterVariable*.woff2,Inter-*.woff2} static/font/inter && \
rm -rf $$tmp_zip $$tmp_dir
update-photoswipe:
@tmp_zip=$$(mktemp) && \
tmp_dir=$$(mktemp -d) && \
curl -s https://api.github.com/repos/dimsemenov/photoswipe/releases/latest \
| jq -r '.zipball_url' \
| xargs curl -Ls -o $$tmp_zip && \
unzip -q -o $$tmp_zip -d $$tmp_dir && \
rm -rf assets/js/photoswipe assets/css/photoswipe && \
mkdir -p assets/js/photoswipe assets/css/photoswipe && \
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe-lightbox.esm.js assets/js/photoswipe && \
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe.esm.js assets/js/photoswipe && \
cp $$tmp_dir/*PhotoSwipe*/dist/photoswipe.css assets/css/photoswipe && \
rm -rf $$tmp_zip $$tmp_dir
node-modules:
npm install && \
cd ../.. && \
ln -s ./themes/caldwell/node_modules node_modules
format:
nix fmt