diff --git a/_config.yml b/_config.yml index c364cf5..3c0e23c 100755 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ info: version: '2.3.1' docs: https://volantis.js.org/ cdn: # To use CDN, write 'use_cdn: true' in 'blog/_config.yml'. - css: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.3.1.1/css/style.css + css: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.3.1.2/css/style.css js: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-volantis@2.3/js/app.js diff --git a/scripts/tags/video.js b/scripts/tags/video.js new file mode 100644 index 0000000..bae4352 --- /dev/null +++ b/scripts/tags/video.js @@ -0,0 +1,8 @@ +'use strict'; + +function postVideo(args) { + let src = args[0].trim() + return ``; +} + +hexo.extend.tag.register('video', postVideo); diff --git a/source/css/_layout/article.styl b/source/css/_layout/article.styl index b5a68d3..d6d266e 100644 --- a/source/css/_layout/article.styl +++ b/source/css/_layout/article.styl @@ -33,6 +33,9 @@ display: inline margin: auto + video + border-radius: $border-codeblock + h1,h2,h3,h4,h5,h6 &:first-child margin-top: $gap-block