Commit Graph

1279 Commits

Author SHA1 Message Date
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
curben bd4a14dfa3 Use fontawesome 5 svg & js framework 2018-09-30 15:12:38 +09:30
curben 0bb968a58c Set background color of inline code snippet
More contrast like code block
2018-09-30 13:27:40 +09:30
curben 43d0b22e6b Fix clipboardjs implemention
Previous commit 4fb0adb24a didn't work
Credit to https://www.jianshu.com/p/3e9d614c1e77
2018-09-30 13:21:59 +09:30
curben a72fa4036c Switch from hexo-filter-nofollow to hexo-nofollow 2018-09-29 22:57:33 +09:30
curben 8e5c6f4f0f Update fancybox and implement sri-fallback
https://github.com/cyph/sri-fallback
2018-09-29 21:07:09 +09:30
curben 45b47a9414 Upgrade clipboardjs to 2.0.1 2018-09-29 19:24:51 +09:30
curben 73b0a203bc Use subresource integrity for js
https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
https://hacks.mozilla.org/2015/09/subresource-integrity-in-firefox-43/
https://www.troyhunt.com/protecting-your-embedded-content-with-subresource-integrity-sri/
2018-09-29 19:22:06 +09:30
curben 4fb0adb24a Add 'Copy' button to code snippet
https://webdesign.tutsplus.com/tutorials/copy-to-clipboard-made-easy-with-clipboardjs--cms-25086
https://davidwalsh.name/clipboard
2018-09-29 18:46:59 +09:30
curben 45b555f745 Disable fancybox temporarily 2018-09-29 18:18:56 +09:30
curben 19eaf310af Remove gzip from CI
now handled by hexo-yam
2018-09-29 15:33:51 +09:30
curben cea34ae81d Create 'Make hexo blog smaller' post 2018-09-28 12:23:48 +09:30
curben e32264c365 Replace hexo-autonofollow with hexo-filter-nofollow
hexo-filter-nofollow has updated cheerio
https://snyk.io/test/npm/hexo-suka-autonofollow
2018-09-28 12:17:40 +09:30
curben 2e7d211a4f Remove hexo-all-minifier snyk patches
Not applicable anymore
cc1b2fc204
2018-09-27 21:51:53 +09:30
curben ed9aa18e87 Merge theme's to site's config
https://hexo.io/docs/configuration.html#Overriding-Theme-Config
2018-09-27 21:40:16 +09:30
curben 18c14302f6 Disable line number in code snippet 2018-09-27 21:33:04 +09:30
curben cc1b2fc204 Switch to hexo-yam
imagemin module of hexo-all-minifier has vulnerabilities
https://snyk.io/test/npm/hexo-all-minifier
Use pre-compressed images instead
2018-09-27 18:24:10 +09:30
curben 0da762f287 More archive layout fix 2018-09-26 21:01:03 +09:30
curben 0f58cc00fd Use only one build job
Having build and test jobs is too slow
2018-09-26 20:50:21 +09:30
curben 7953a0f16b Fix archive page layout
Leave a small gap between date and post title
2018-09-26 20:45:06 +09:30