From b1a9b1b9b2f04efd6dc39bd2a02c544d34d1259c Mon Sep 17 00:00:00 2001 From: Prefetch Date: Sun, 1 Jan 2023 16:40:56 +0100 Subject: Change license, add Makefile, add image caching control --- Makefile | 28 ++++++++++++++++++++++ source/_includes/footer.html | 4 ++-- source/_includes/image.html | 14 +++++++---- source/_includes/preamble.html | 2 +- source/blog/2022/email-server-revisited/index.md | 3 ++- .../concept/bernstein-vazirani-algorithm/index.md | 3 ++- source/know/concept/bloch-sphere/index.md | 3 ++- .../know/concept/deutsch-jozsa-algorithm/index.md | 6 +++-- source/know/concept/dispersive-broadening/index.md | 3 ++- source/know/concept/fabry-perot-cavity/index.md | 3 ++- source/know/concept/feynman-diagram/index.md | 15 ++++++++---- source/know/concept/metacentric-height/index.md | 3 ++- .../know/concept/modulational-instability/index.md | 3 ++- source/know/concept/optical-wave-breaking/index.md | 9 ++++--- .../concept/quantum-fourier-transform/index.md | 6 +++-- source/know/concept/quantum-gate/index.md | 9 ++++--- .../concept/random-phase-approximation/index.md | 12 ++++++---- source/know/concept/repetition-code/index.md | 15 ++++++++---- source/know/concept/rutherford-scattering/index.md | 6 +++-- source/know/concept/self-energy/index.md | 9 ++++--- source/know/concept/self-phase-modulation/index.md | 3 ++- source/know/concept/self-steepening/index.md | 3 ++- source/know/concept/shors-algorithm/index.md | 3 ++- source/know/concept/simons-algorithm/index.md | 3 ++- source/know/concept/step-index-fiber/index.md | 6 +++-- source/know/concept/toffoli-gate/index.md | 18 +++++++++----- 26 files changed, 136 insertions(+), 56 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..05af8fe --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +.PHONY: serve build compress deploy clean + + +serve: + EXECJS_RUNTIME=MiniRacer bundle exec jekyll serve --livereload --incremental + + +build: + EXECJS_RUNTIME=MiniRacer JEKYLL_ENV=production bundle exec jekyll build + + +FINDARGS1 = -name "*.html" -o -name "*.xml" -o -name "*.css" -o -name "*.js" +FINDARGS2 = -name "*.svg" -o -name "*.webmanifest" -o -name "*.ico" -o -name "*.txt" +compress: + for f in `find public/ -type f $(FINDARGS1) -o $(FINDARGS2)`; do \ + echo "Compressing $$f..." ; \ + gzip --keep --force -9 $$f ; \ + brotli --keep --force -Z $$f ; \ + done + + +deploy: + rsync --rsh="ssh -p $(PORT)" --stats --checksum --recursive public/ $(HOST):/srv/prefetch.eu/public/ + + +clean: + rm -rf public/* + rm -rf source/.jekyll-cache/* diff --git a/source/_includes/footer.html b/source/_includes/footer.html index d91d3d5..b3679e8 100644 --- a/source/_includes/footer.html +++ b/source/_includes/footer.html @@ -1,7 +1,7 @@
-
+
+
{% else %}
-
+
{% endif %}