curben
2b0f0f91ac
fix(favicon): update colour
2019-09-03 15:33:10 +01:00
curben
e34533c5fc
feat: update favicon
2019-09-03 13:37:23 +01:00
curben
0da56daf5d
fix(js): defer clipboard.min.js
...
- https://stackoverflow.com/a/32413638
2019-08-30 11:20:40 +01:00
curben
b6acf222e2
feat(lazy_loading): remove loading-attribute-polyfill due to requirement of inline script
...
* it requires 'unsafe-inline' for script-src policy
2019-08-30 08:23:06 +01:00
curben
020ba39fff
fix(head): meta generator tag should be after <title>
...
- so that browser can parse <title> asap
2019-08-30 05:50:48 +01:00
curben
63a8fccc48
Revert "fix(head): meta generator tag should be after <title>"
...
This reverts commit 710b9b25a1
.
2019-08-30 05:50:10 +01:00
curben
710b9b25a1
fix(head): meta generator tag should be after <title>
...
- so that browser can parse <title> asap
2019-08-30 05:43:20 +01:00
curben
2207579d19
feat(metaGenerator): restore metaGenerator
...
* hexo's meta_generator also append to <title> of <svg>
Revert "feat(metaGenerator): drop metaGenerator in favor of Hexo's"
This reverts commit afb4741be6
.
2019-08-30 05:40:35 +01:00
curben
afb4741be6
feat(metaGenerator): drop metaGenerator in favor of Hexo's
...
* https://github.com/hexojs/hexo/pull/3671
2019-08-26 20:49:16 +09:30
curben
7dc55833fb
feat(assets): Statically cdn
2019-08-26 12:32:53 +09:30
curben
d4af69e1dc
fix(addJs): valid path
2019-08-26 09:27:38 +09:30
curben
65d463bc9d
feat(img): add image lazyloading
...
* https://dev.to/yashints/native-lazy-loading-is-landed-in-chrome-2kli
* https://github.com/mfranzke/loading-attribute-polyfill
2019-08-26 09:26:02 +09:30
curben
2753cd76ea
fix(addJs): must include .js extension
2019-08-26 09:14:11 +09:30
curben
b4ff248560
feat(addCss): add helper to embed css file
2019-08-26 09:12:05 +09:30
curben
78942640d2
style(meta_generator): camel case to metaGenerator()
2019-08-26 00:25:04 +09:30
curben
63150f5153
feat: use meta_generator helper instead of filter
...
https://github.com/hexojs/hexo/pull/3669
2019-08-11 11:11:01 +09:30
curben
1380f98108
fix: </html> appear after </head>
2019-08-06 20:16:44 +09:30
curben
ec434af4ea
style: reduce tab spacing
2019-06-26 16:26:23 +09:30
curben
6b9395cebc
fix(sitemap): add sitemap location to <head> and robots.txt
...
* https://github.com/h5bp/html5-boilerplate/pull/1918
2019-06-26 16:24:19 +09:30
curben
e130371288
feat(layout): Add page number to blog <title>
2019-06-13 13:38:30 +09:30
curben
e4b065288c
fix(layout): set website's and blog's <title>
2019-06-13 13:35:49 +09:30
curben
fba0d3deab
feat(openGraph): add post's published time to meta tag
...
* Rename function name to camel case (standardjs)
* Skip timezone conversion, but not using the date() helper
* Open Graph tag is based on Wordpress Yoast, noticed through
https://dvt.name/2019/06/03/hacking-the-casio-f-91w-to-handle-1000-psi/
2019-06-03 22:56:46 +09:30
curben
00fbcce468
refactor: unify HTTP header settings into _headers
2019-05-26 15:09:27 +09:30
curben
7ebcc03977
fix(open_graph): use data-src attribute in img tag
...
* compatibility with cloudinary (see scripts/cloudinary.js)
* helper has to be registered via a function
- https://github.com/hexojs/hexo/issues/1462#issuecomment-277474592
- https://github.com/hexojs/hexo/issues/743#issuecomment-168262852
- https://hexo.io/api/helper
- https://github.com/hexojs/hexo/blob/master/lib/plugins/helper/open_graph.js
2019-05-25 22:21:44 +09:30
curben
15048c2d1f
fix: search.svg does not load in Firefox due to CSP
...
* Use default-src 'self' as a workaround
https://pokeinthe.io/2016/04/09/black-icons-with-svg-and-csp/
https://bugzilla.mozilla.org/show_bug.cgi?id=1303364
https://github.com/w3c/webappsec-csp/issues/199
https://github.com/w3c/webappsec-csp/issues/198
* use 'self' instead of localhost and netlify.com
* set other directives to 'none'
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
* font-src neeeds to be whitelisted before using fork-awesome
2019-05-22 12:39:53 +09:30
curben
08fb7897e1
fix: replace 'https' with 'https:' in CSP
...
https://content-security-policy.com/#source_list
2019-05-22 11:00:00 +09:30
curben
821ac056b7
feat: add CSP via <meta> tag
...
* <meta> doesn't support frame-ancestors directive
* '*--curben.netlify.com' is invalid
* add localhost
* block-all-mixed-content works with localhost
2019-05-21 14:41:56 +09:30
curben
d6c36abab9
refactor: switch to Fork-Awesome
2019-04-15 14:16:07 +09:30
curben
43bf50dac5
refactor: switch to more modern sri-fallback
...
https://github.com/JackuB/subresource-integrity-fallback
2019-04-10 19:59:56 +09:30
curben
d314bff200
chore: update libs
2019-04-10 14:45:02 +09:30
curben
624d449a3e
style: use ES6 syntax and standard style
2018-11-01 12:15:03 +10:30
curben
b338ab9459
Add Open Graph meta tags
...
http://ogp.me/
https://stackoverflow.com/q/6535405
2018-10-26 18:42:35 +10:30
curben
bd4a14dfa3
Use fontawesome 5 svg & js framework
2018-09-30 15:12:38 +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
0da3a00471
Use mobile-friendly favicon
...
https://realfavicongenerator.net/
Undo e3b6dc8404
2018-09-20 13:41:03 +09:30
curben
100730a537
Remove donation links and icons
2018-09-19 18:49:07 +09:30
curben
55281fcc3a
Upgrade jQuery, clipboard.js and fontawesome
...
Upgrade jQuery to v3.3.1, clipboard.js to v2.0.1 and fontawesome to v5.3.1
2018-09-19 10:19:58 +09:30
curben
33bdd1d382
Self-serve scripts and remove unused codes
2018-09-16 16:54:02 +09:30
curben
0fc76e12aa
Install 'typing' theme
2018-09-14 17:57:43 +09:30