From 5f68d6d09cc53b33ad8153b6137231f8f18748f9 Mon Sep 17 00:00:00 2001 From: curben Date: Sat, 6 Oct 2018 18:38:42 +0930 Subject: [PATCH] Replace onwards with plus sign --- source/_posts/make-hexo-blog-smaller.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md index ef71795..46e554a 100644 --- a/source/_posts/make-hexo-blog-smaller.md +++ b/source/_posts/make-hexo-blog-smaller.md @@ -32,7 +32,7 @@ and deploy. # Compression [Compression](https://en.wikipedia.org/wiki/Data_compression) uses more advanced technique to reduce the file size even further. Most modern web browsers support gzip decompression and prefer it (with appropriate HTTP header). As you might know from zipping a text file, this can yield significant reduction in file size. For example, my home page `index.html` is less than half smaller (3.3KB > 1.2KB). Check it out [here](https://gitlab.com/curben/blog/-/jobs/101703188/artifacts/browse/public/). -***Update:*** hexo-yam v0.5.0 onwards offer gzip and brotli compressions. After you install it, it will automatically compress assets files to `.gz` and `.br` whenever hexo generate/deploy/server. This means the command `$ find ....` as shown below is no longer required. +***Update:*** hexo-yam 0.5.0+ offers gzip and brotli compressions. After you install it, it will automatically compress assets files to `.gz` and `.br` whenever hexo generate/deploy/server. This means the command `$ find ....` as shown below is no longer required. 1. Linux distro has built-in gzip. Install brotli through apt/dnf/yum/pacman. 2. To compress, simply run the following commands after you generate static files (`$ hexo generate`), only `public` folder is affected,