Ming Di Leom
5565b5d5d8
feat: cloudflare images
2024-10-04 10:46:57 +00:00
Ming Di Leom
1fc009248b
refactor: simpler external link check
2023-02-25 06:41:45 +00:00
Ming Di Leom
ce9349e918
fix(img-embed): original image in /img/ path
...
- join() removes double slash in https://
2022-06-14 07:29:25 +00:00
Ming Di Leom
2a0fe254c7
fix(assets): https
2022-03-08 07:28:28 +00:00
Ming Di Leom
2f22f1dfdf
fix(assets): proxy to gitlab pages
...
- statically image-resizing is down
* https://github.com/staticallyio/statically/issues/98
- may self-host https://github.com/staticallyio/image-resizing
* requires CF Images subscription
2022-03-05 08:06:43 +00:00
Ming Di Leom
4fca3c6cf9
fix(smartypants): utilise escapeHTML()
...
- breaking change of marked v4
* https://github.com/markedjs/marked/releases/tag/v4.0.0
2022-03-02 08:16:50 +00:00
Ming Di Leom
160a621db7
fix: compatibility with marked v3
...
- ab0e0a1146
2021-10-10 09:46:49 +00:00
MDLeom
8c5fb258de
fix(image.js): syntax
2021-01-15 01:30:27 +00:00
MDLeom
e7449110c8
fix: update Statically API endpoint
...
- new endpoint seems easier to cache, especially when cloudflare is configured not to cache query string
* https://support.cloudflare.com/hc/en-us/articles/218411427#summary-of-page-rules-settings
- Statically doesn't support resizing webp & gif yet
- screenshot API also doesn't support mobile version
* it was previously working
2021-01-12 03:32:41 +00:00
MDLeom
86cf708fda
feat: add smartypants
...
- replace right arrow with unicode equivalent
2020-11-21 03:38:51 +00:00
MDLeom
81e08296fa
fix(image-embed): handle embedding external image
...
- move to site script to make theme more generic
2020-03-08 09:39:14 +00:00
curben
14c57d7009
fix: move scripts to theme
...
- portability
2019-10-06 10:52:28 +01:00
curben
1c4a7484a8
fix(openGraph): htmlTag escape html by default
...
- also encode url
- https://github.com/hexojs/hexo-util/releases/tag/1.3.0
2019-09-25 03:41:07 +01:00
curben
996cb83aa2
refactor(cssFilter): async/await
2019-09-25 00:10:57 +01:00
curben
a429e0fd81
fix(copy-button): add button to every codeblock
2019-09-06 08:02:44 +01:00
curben
98c227aba9
docs(image_helper): mention responsive image and Imgpx
2019-09-04 03:46:35 +01:00
curben
613b8a33ec
refactor(copy-button): replace cheerio with regex
2019-09-04 03:36:08 +01:00
curben
3fca979939
style: standard
2019-09-04 03:05:13 +01:00
curben
ffd57460c7
fix(openGraph): only add article: tag for posts only
2019-09-04 02:35:28 +01:00
curben
07ab8c08d7
fix(openGraph): URL api error handling
2019-09-04 02:31:06 +01:00
curben
1d5966e191
feat: remove metaGenerator helper
...
- svg issue has been fixed https://github.com/hexojs/hexo/pull/3697
2019-09-04 01:26:51 +01:00
curben
8ba353e726
fix(image_tag): rename 'cloudinary' tag plugin to 'image'
2019-09-03 20:37:52 +01:00
curben
c919e44572
feat(img): drop Cloudinary
...
- move site assets to gitlab
- update path name
2019-09-03 20:26:50 +01:00
curben
024ac67308
feat(img): reverse proxy /img/ to cdn
2019-09-03 17:40:30 +01:00
curben
6fd9f505d5
Revert "fix: move /about/ page to homepage"
...
Revert 2cd9094dc5
and d732bcc88b
2019-09-03 17:06:29 +01:00
curben
2cd9094dc5
fix: move /about/ page to homepage
2019-09-03 16:39:19 +01:00
curben
b4dd405a5a
style: array destructuring
...
https://github.com/airbnb/javascript#destructuring--array
2019-09-03 03:48:42 +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
c282f06c76
refactor(addJs & addCss): forEach()
2019-08-30 07:40:29 +01:00
curben
503584a543
fix(cloudinary): Statically not support animated webp
2019-08-30 07:24:07 +01:00
curben
bde71fd644
fix(cloudinary): <noscript> should have class attribute
2019-08-30 06:29:19 +01:00
curben
f39bab62de
refactor(cloudinary): combine variables
2019-08-30 05:52:16 +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
0c5735f7b6
fix(cloudinary): fileName should be let
2019-08-30 04:34:33 +01:00
curben
e6637dcef3
refactor(cloudinary): use Statically Imgpx image resize function
...
- https://developers.marsble.com/docs/imgpx
2019-08-30 04:31:44 +01:00
curben
3187b18bef
docs(openGraph): og:image is now derived from <a>
2019-08-26 21:00:24 +09:30
curben
a36be09d24
feat(listTags): drop listTags in favor of official list_tags
...
- Hexo has added microformat and schema
* https://github.com/hexojs/hexo/pull/3678
2019-08-26 20:52:24 +09:30
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
4b77924e2d
refactor(cssFilter): replace micromatch with String.endsWith()
2019-08-26 13:55:45 +09:30
curben
8292e31140
refactor(cssFilter): remove exclude variable
2019-08-26 13:49:03 +09:30
curben
03e82cfb2c
refactor(cssFilter): promise-fy
2019-08-26 13:48:10 +09:30
curben
0dee19bfdf
refactor: direct call without using function()
2019-08-26 13:33:23 +09:30
curben
0cc5bbb017
fix(cssFilter): use renderer
...
* instead of filter due to conflict with hexo-yam
2019-08-26 13:16:47 +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
691709711c
fix(cloudinary): extra bracket
2019-08-26 09:14:35 +09:30
curben
b4ff248560
feat(addCss): add helper to embed css file
2019-08-26 09:12:05 +09:30
curben
f90efdfe5f
feat(addJs): add a helper to embed <script src="">
2019-08-26 08:14:21 +09:30
curben
c416aedb2d
feat(cloudinary): use Staticaly CDN
2019-08-26 06:18:09 +09:30