Commit Graph

196 Commits

Author SHA1 Message Date
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
curben 666d99def0 Add hexo-autonofollow
hexo-autonofollow also adds target="_blank"
2018-09-23 15:54:51 +09:30
curben af69c9a40b Change date format to '1 Jan 2018' 2018-09-23 15:30:00 +09:30
curben ae4cf09d64 Update installation guide
Suggest to run 'hexo server' for website preview.
2018-09-23 10:35:41 +09:30
curben dde0a696bb Use latest version of hexo and its plugins. 2018-09-22 16:17:14 +09:30
curben 8e6c68f448 Change post url 2018-09-21 15:53:04 +09:30
curben ae553dc4db Remove ToC from readme
Automatic generation of ToC on readme requires Kramdown.
https://gitlab.com/gitlab-com/gitlab-docs/issues/50
https://about.gitlab.com/handbook/product/technical-writing/markdown-guide/#table-of-contents-toc
2018-09-21 15:38:38 +09:30
curben 27903b3fd8 Don't display list number
in article's table of contents
2018-09-21 15:29:58 +09:30
curben 1b1de4c52d Fix ToC in readme 2018-09-21 15:06:51 +09:30
curben b0348791dd Update post title 2018-09-21 14:58:53 +09:30
curben 4ba10a3594 Add table of contents to post 2018-09-21 14:57:00 +09:30
curben 20632c9c26 Create installation guide post
Move the lengthy installation guide to a new blog post.
2018-09-21 14:09:51 +09:30
curben c3a2f757d4 Create installation guide 2018-09-20 19:48:13 +09:30
curben 8d6be599b6 Remove unused config 2018-09-20 13:57:23 +09:30
curben 0da3a00471 Use mobile-friendly favicon
https://realfavicongenerator.net/
Undo e3b6dc8404
2018-09-20 13:41:03 +09:30
curben 5d013e97b3 Compress files when deploy site
https://docs.gitlab.com/ee/user/project/pages/introduction.html#serving-compressed-assets
2018-09-19 21:13:24 +09:30
curben e3b6dc8404 Add favicon 2018-09-19 18:59:02 +09:30