Skip to content

Commit

Permalink
修复了 video 自定义本地 URL 时,子目录部署时的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkfox committed Apr 11, 2020
1 parent 5cb8f20 commit 64ef764
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ minivaline:
# Available values: en | zh-CN | (and many more)
# More i18n info: https://github.com/MiniValine/minivaline-i18n
lang:



# Whether to display fork me on github icon and link, default true, You can change it to your repo address
# 配置是否在 header 中显示 fork me on github 的图标,默认为true,你可以修改为你的仓库地址.
githubLink:
Expand Down
6 changes: 3 additions & 3 deletions layout/_widget/video.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
preload: '<%- theme.video.preload %>',
volume: Number('<%- theme.video.volume %>'),
video: {
url: '<%- theme.video.url %>',
pic: '<%- theme.video.pic %>',
thumbnails: '<%- theme.video.thumbnails %>'
url: '<% if (theme.video.url) { %><%- url_for(theme.video.url) %><% } %>',
pic: '<% if (theme.video.pic) { %><%- url_for(theme.video.pic) %><% } %>',
thumbnails: '<% if (theme.video.thumbnails) { %><%- url_for(theme.video.thumbnails) %><% } %>'
}
});
});
Expand Down

0 comments on commit 64ef764

Please sign in to comment.