Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSeob committed Mar 21, 2017
2 parents fda6ed6 + 89528c1 commit 4fb98ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
*/

hexo.extend.helper.register('bannerOf', function (post) {
if(post.banner && hexo.config.post_asset_folder && post.banner.url.split('/').length === 1){
var base_url = hexo.config.url;
if (base_url.charAt(base_url.length - 1) !== '/') base_url += '/';
post.banner.url = base_url + post.path + post.banner.url;
}
var url = post.banner ? post.banner.url : (post.photos && post.photos.length ? post.photos[0] : '');
var imgRegex = /\<img\s.*?\s?src\s*=\s*['|"]?([^\s'"]+).*?\>/ig;
if (!url) {
Expand Down
3 changes: 3 additions & 0 deletions source/css/font.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
body {
font-family: 'Spoqa Han Sans', 'Spoqa Han Sans JP', 'Noto Sans Korean', sans-serif;
text-shadow: 0 0 0.1px rgba(0,0,0,0.3);
-webkit-text-size-adjust: antialiased;
-moz-osx-font-smoothing: grayscale;
}

0 comments on commit 4fb98ce

Please sign in to comment.