Skip to content

Commit 4fb98ce

Browse files
committed
Merge branch 'develop'
2 parents fda6ed6 + 89528c1 commit 4fb98ce

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

scripts/banner.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
*/
77

88
hexo.extend.helper.register('bannerOf', function (post) {
9+
if(post.banner && hexo.config.post_asset_folder && post.banner.url.split('/').length === 1){
10+
var base_url = hexo.config.url;
11+
if (base_url.charAt(base_url.length - 1) !== '/') base_url += '/';
12+
post.banner.url = base_url + post.path + post.banner.url;
13+
}
914
var url = post.banner ? post.banner.url : (post.photos && post.photos.length ? post.photos[0] : '');
1015
var imgRegex = /\<img\s.*?\s?src\s*=\s*['|"]?([^\s'"]+).*?\>/ig;
1116
if (!url) {

source/css/font.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
body {
22
font-family: 'Spoqa Han Sans', 'Spoqa Han Sans JP', 'Noto Sans Korean', sans-serif;
3+
text-shadow: 0 0 0.1px rgba(0,0,0,0.3);
4+
-webkit-text-size-adjust: antialiased;
5+
-moz-osx-font-smoothing: grayscale;
36
}

0 commit comments

Comments
 (0)