Skip to content

Commit

Permalink
fix: 头像为null问题
Browse files Browse the repository at this point in the history
  • Loading branch information
litten committed Nov 14, 2017
1 parent cff4425 commit d52d6c0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Expand Up @@ -28,7 +28,7 @@ rss: /atom.xml
# 是否需要修改 root 路径
# 如果您的网站存放在子目录中,例如 http://yoursite.com/blog,
# 请将您的 url 设为 http://yoursite.com/blog 并把 root 设为 /blog/。
root:
root: /

# Content

Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/css.ejs
@@ -1 +1 @@
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.507b3a.css">
<link rel="stylesheet" type="text/css" href="<%=config.root%>./main.0cf68a.css">
2 changes: 1 addition & 1 deletion layout/_partial/post/share.ejs
Expand Up @@ -46,7 +46,7 @@
<a class="close js-modal-close" href="javascript:;"><i class="icon icon-close"></i></a>
<p>扫一扫,分享到微信</p>
<div class="wx-qrcode">
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : 'http://s.jiathis.com/qrcode.php?url=' + sUrl %>" alt="微信分享二维码">
<img src="<%- 'qrcode' in locals ? qrcode(sUrl) : '//pan.baidu.com/share/qrcode?url=' + sUrl %>" alt="微信分享二维码">
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion layout/_partial/script.ejs

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions source-src/js/viewer.js
Expand Up @@ -21,10 +21,13 @@ function init() {
let img = $em2.getAttribute('data-idx', i2)
let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
let title = $em2.getAttribute('alt')
// 获得原图尺寸
const image = new Image()
image.src = src
items.push({
src: src,
w: $em2.width,
h: $em2.height,
w: image.width || $em2.width,
h: image.height || $em2.height,
title: title
})
})
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion source/main.507b3a.js → source/main.0cf68a.js

Large diffs are not rendered by default.

1 comment on commit d52d6c0

@superbaiyu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't know what are you saying!!!!!

Please sign in to comment.