Commit Graph

862 Commits

Author SHA1 Message Date
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
curben b11eeef202 Use relative font size instead of absolute size 2018-09-26 18:54:31 +09:30
curben 7ede088994 Tweak CSS for wider display
Use more screen space especially on 1080p screen
2018-09-26 15:18:06 +09:30
curben 14d7dffb55 Create 'How to remove Windows 10 default apps' post 2018-09-26 12:00:13 +09:30
curben 93b4319cdc Remove repo links
Edit from your repo, not upstream's
2018-09-25 13:07:42 +09:30
curben e5fa7d8cc3 Update nodejs installation guide
Add more distro
2018-09-25 11:54:55 +09:30
curben 2053a2c2de Remove duplicate scripts 2018-09-25 11:09:12 +09:30
curben 80140fa10b Apply patches immediately after 'npm install' 2018-09-25 10:54:14 +09:30
curben 9ede298e68 'only:' cannot be set globally
must be inside a job and must be an array not a string
2018-09-25 10:31:58 +09:30
curben 1b594c706e Add snyk to CI
Use proper snyk flow https://snyk.io/docs/using-snyk/
2018-09-25 10:29:43 +09:30
curben 7c9301705b Remove unused language files 2018-09-25 08:58:46 +09:30
curben b15720939b Remove source.css, beautify typing.css
typing.css is compiled from source.css
typing.css would be minified by hexo-all-minifier
2018-09-25 08:57:12 +09:30
curben 3736c86114 Update package-lock.json 2018-09-24 18:27:13 +09:30
curben eb7644b57c Add package-lock.json 2018-09-24 18:22:37 +09:30
curben f500d2443d fix: .snyk & package.json to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/npm:lodash:20180130
- https://snyk.io/vuln/npm:tunnel-agent:20170305
2018-09-24 18:22:28 +09:30
curben 7efe6efef1 Put uncompressed favicons at root folder
hexo-all-minifer also compress favicons
root folder recommendation https://realfavicongenerator.net/faq
2018-09-24 11:21:48 +09:30
curben c7fca85408 Show hexo version 2018-09-23 16:26:20 +09:30
curben 8f483e5e03 Add hexo-all-minifier
while js and css have been minified, this minify html and compress pictures.
2018-09-23 16:00:21 +09:30