From 1e6074df9cc13e075dcba3889a4b5dcddeb7481d Mon Sep 17 00:00:00 2001 From: curben Date: Fri, 5 Oct 2018 12:32:48 +0930 Subject: [PATCH] Update repo link --- source/_posts/how-to-create-a-hexo-blog.md | 4 ++-- source/_posts/make-hexo-blog-smaller.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md index c0bf1f8..1791416 100644 --- a/source/_posts/how-to-create-a-hexo-blog.md +++ b/source/_posts/how-to-create-a-hexo-blog.md @@ -29,7 +29,7 @@ Create a website/blog (hosted by [GitLab](https://about.gitlab.com/features/page 1. Having Hexo means you can debug locally, rather than waiting for [CI](https://docs.gitlab.com/ee/ci/). You can even run a local server to preview your blog (see step 6 below). 2. Clone this project to your workstation. Change `` to a preferred name. ```bash -$ git clone https://gitlab.com/curben/curben.gitlab.io +$ git clone https://gitlab.com/curben/blog ``` 3. Install Node.js 10. Other distro, see this [guide](https://nodejs.org/en/download/package-manager/) or [here](https://github.com/nodesource/distributions). ```bash @@ -62,7 +62,7 @@ $ hexo generate $ npm install hexo-server --save $ hexo server ``` -7. Commit the changes and push them. The generated `public` and `node_modules` are [ignored](https://gitlab.com/curben/curben.gitlab.io/blob/master/.gitignore), as CI will generate them during build. +7. Commit the changes and push them. The generated `public` and `node_modules` are [ignored](https://gitlab.com/curben/blog/blob/master/.gitignore), as CI will generate them during build. 1. I have migrated to [Netlify](https://www.netlify.com/) and removed my GitLab page. 2. Since I don't have a gitlab page anymore, I removed the deploy command in the `.gitlab-ci.yml`. 3. The config now has two parts. To use in gitlab page, simply uncomment the second part and comment out the first part. diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md index 72608c0..ef71795 100644 --- a/source/_posts/make-hexo-blog-smaller.md +++ b/source/_posts/make-hexo-blog-smaller.md @@ -30,7 +30,7 @@ $ npm install hexo-yam --save 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/curben.gitlab.io/-/jobs/101703188/artifacts/browse/public/). +[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.