Commit Graph

1248 Commits

Author SHA1 Message Date
curben c73967c47f Add 'GNU vs BusyBox Unix tools' post 2018-10-13 14:08:32 +10:30
curben d56a73f241 Use latest version of node on netlify
Previous issue is fixed
89f80789b0

Possibly due to stricter/more consistent parsing of symlink on nodejs v10.12
https://github.com/nodejs/node/pull/22808
2018-10-11 17:18:54 +10:30
curben 89f80789b0 Use symbolic link instead of hard link
https://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html
https://www.cyberciti.biz/faq/creating-soft-link-or-symbolic-link/
2018-10-11 17:14:47 +10:30
curben f636ec012a Run hexo on gitlab ci for debugging 2018-10-11 17:02:47 +10:30
curben a4406ba3ef Downgrade nodejs to v10.11
Possible netlify bug
2018-10-11 12:15:21 +10:30
curben bb89c070b1 Add ignore policy to snyk 2018-10-11 11:38:56 +10:30
curben 9bb8a0d997 Add more example 2018-10-11 11:30:24 +10:30
curben f6d29560a0 Add security issue example 2018-10-11 10:36:02 +10:30
curben c79ae97add Add 'Default binaries in Alpine docker image' post 2018-10-10 20:54:49 +10:30
curben 54d74b4d1b Switch to cloudinary-jquery without file-upload function
- cloudinary-core 67.1KB
- cloudinary-jquery 66.5KB
- cloudinary-jquery-file-upload 71KB
2018-10-07 14:47:51 +10:30
curben 22d6784d2c Add links to configs 2018-10-07 11:52:03 +10:30
curben 7f1cb26fc1 hexo-all-minifier prerequisite 2018-10-06 18:43:47 +09:30
curben 5f68d6d09c Replace onwards with plus sign 2018-10-06 18:38:42 +09:30
curben 4eca4d9ebf Don't bundle js
HTTP/2 (supported by Netlify) offers multiplexing, so bundle/concat is not required
https://stackoverflow.com/a/36519379
Revert a4226f1413
2018-10-05 14:12:03 +09:30
curben 1e6074df9c Update repo link 2018-10-05 12:32:48 +09:30
curben c9350ba269 Simplify npm installation 2018-10-05 12:29:35 +09:30
curben 3f6655a33c Update hexo-yam to 0.6.0 2018-10-05 12:16:02 +09:30
curben 3d97dee41b In Archive page, display post title next line after post date 2018-10-04 14:37:30 +09:30
curben a4226f1413 Combine sri-fallback and typing
Save one HTTP request
2018-10-04 12:21:36 +09:30
curben 13b9218525 Use brighter colours, increase the size from 30px to 48px
svg optimised using svgo
https://www.npmjs.com/package/svgo
2018-10-03 18:48:15 +09:30
curben 33cde260e9 Add post excerpt 2018-10-03 10:21:34 +09:30
curben 983b522b7c Limit max width of picture to 500px, remove dpr_auto
https://cloudinary.com/documentation/responsive_images#automatic_image_width
dpr is not widely supported https://www.caniuse.com/#feat=client-hints-dpr-width-viewport
2018-10-02 21:11:43 +09:30
curben 74e0beae68 Don't hide desktop folder 2018-10-02 21:01:16 +09:30
curben 643a8a1deb Update gitlab link
1a08bcf445
2018-10-02 20:34:30 +09:30
curben 498bf8bebb Create 'Hide folders of Caja side pane' post 2018-10-02 17:59:02 +09:30
curben c4d955b6a3 Add snyk docs 2018-10-02 17:48:15 +09:30
curben f5c47ca326 Add brotli command 2018-10-02 17:29:42 +09:30
curben 04cdbefaea Clarify the parts in gitlab-ci.yml
job name and deploy command have changed since I migrated to Netlify
2018-10-02 14:08:25 +09:30
curben 9a8a48a15d Don't inject fancybox tag/class to cloudinary class
Incompatible with cloudinary
2018-10-02 12:33:19 +09:30
curben 3f0d87f8aa Remove brotli header
netlify doesn't seem to support it
Revert d15c2d2c7b and 60de0c28c4
2018-10-02 11:38:35 +09:30
curben d15c2d2c7b Add content-type header
so browser knows whether it's js or css
2018-10-02 11:29:54 +09:30
curben 60de0c28c4 Add redirect rule for js and css
set their content-encoding header as br (for brotli compression)
2018-10-02 10:50:05 +09:30
curben 96ad70e1e1 Create 'Secure node modules with Synk' post 2018-10-02 09:46:39 +09:30
curben af0dde9483 Fix typo in cloudinary script 2018-10-02 09:45:02 +09:30
curben adf707c0fb Add cloudinary call
https://cloudinary.com/documentation/responsive_images#step_3_call_the_cloudinary_responsive_method
19e3cd1bcb
2018-10-01 21:30:53 +09:30
curben 67448d00bb Remove content-encoding header
netlify doesn't seem to support brotli compression
2018-10-01 20:27:40 +09:30
curben 1a08bcf445 Update gitlab link 2018-10-01 14:59:01 +09:30
curben baf334c4fd Add Netlify header file
A separate header file is necessary, even though header rule exists in netlify.toml
Revert aab11bcf14
2018-10-01 14:56:20 +09:30
curben b5529674c0 Class name should be lowercase for fontawesome
Easier to toggle fontawesome feature
bd4a14dfa3
2018-10-01 13:44:32 +09:30
curben 1d4e14de25 Set inline code snippet background color for light theme
0bb968a58c
2018-10-01 13:41:39 +09:30
curben 744b0a57ac Don't use pages as CI job name
https://docs.gitlab.com/ee/ci/yaml/README.html#pages
cb466dbe70
2018-10-01 12:35:37 +09:30
curben 19e3cd1bcb Add cloudinary tag plugin 2018-10-01 12:20:54 +09:30
curben aab11bcf14 Merge _headers into netlify.toml 2018-10-01 10:53:20 +09:30
curben cb466dbe70 Stop deploying to gitlab pages 2018-09-30 19:11:13 +09:30
curben 98e6826ade Add custom header config for netlify
https://www.netlify.com/docs/headers-and-basic-auth/
2018-09-30 18:32:26 +09:30
curben be05e66517 Update snyk policy 2018-09-30 18:01:45 +09:30
curben 2f76100d24 Move snyk commands to production 2018-09-30 17:36:24 +09:30
curben 2fa83af556 Use proper netlify.toml syntax 2018-09-30 17:25:36 +09:30
curben a4490b765d Prepare for netlify 2018-09-30 17:07:10 +09:30
curben 34c9b29f81 Use correct directory of js and css 2018-09-30 15:15:00 +09:30