hexo-theme-stellar 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_config.yml +1 -2
- package/package.json +1 -1
- package/scripts/filters/index.js +0 -13
package/_config.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
######## Stellar info ########
|
|
2
2
|
stellar:
|
|
3
|
-
version: '1.22.
|
|
3
|
+
version: '1.22.1'
|
|
4
4
|
homepage: 'https://xaoxuu.com/wiki/stellar/'
|
|
5
5
|
repo: 'https://github.com/xaoxuu/hexo-theme-stellar'
|
|
6
6
|
cdn_css: # Use cdn links instead of /css/main.css
|
|
@@ -240,7 +240,6 @@ tag_plugins:
|
|
|
240
240
|
# {% image %}
|
|
241
241
|
image:
|
|
242
242
|
fancybox: false # true, false
|
|
243
|
-
parse_markdown: true # 把 markdown 格式的图片解析成图片标签
|
|
244
243
|
|
|
245
244
|
# {% timeline %}
|
|
246
245
|
timeline:
|
package/package.json
CHANGED
package/scripts/filters/index.js
CHANGED
|
@@ -2,16 +2,3 @@
|
|
|
2
2
|
|
|
3
3
|
hexo.extend.filter.register('after_render:html', require('./lib/img_lazyload').processSite);
|
|
4
4
|
hexo.extend.filter.register('after_render:html', require('./lib/img_onerror').processSite);
|
|
5
|
-
|
|
6
|
-
function change_image(data) {
|
|
7
|
-
if (this.theme.config.tag_plugins.image.parse_markdown) {
|
|
8
|
-
data.content = data.content.replace(
|
|
9
|
-
/!\[(.*?)\]\((.*?)\s*(?:"(.*?)")?\)/g,
|
|
10
|
-
'{% image $2 $3 %}'
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
return data;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hexo.extend.filter.register('before_post_render', change_image, 9);
|