Commit Graph

24 Commits

Author SHA1 Message Date
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