Skip to content

Commit

Permalink
fix avatar rounded. (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsai-jimmy authored and ppoffice committed Sep 8, 2019
1 parent 632276b commit 2937dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/widget/profile.ejs
Expand Up @@ -16,7 +16,7 @@
<div>
<% const is_rounded = get_config_from_obj(widget, 'avatar_rounded', false); %>
<figure class="image is-128x128 has-mb-6">
<img <%= is_rounded ? 'class="is-rounded"' : '' %> src="<%= avatar() %>" alt="<%= get_config_from_obj(widget, 'author') %>">
<img class=<%= is_rounded ? 'is-rounded' : '' %> src="<%= avatar() %>" alt="<%= get_config_from_obj(widget, 'author') %>">
</figure>
<% if (get_config_from_obj(widget, 'author')) { %>
<p class="is-size-4 is-block">
Expand Down

7 comments on commit 2937dc6

@xuelangjing
Copy link

Choose a reason for hiding this comment

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

改过之后头像加载不出来了

@tsai-jimmy
Copy link
Contributor Author

@tsai-jimmy tsai-jimmy commented on 2937dc6 Sep 13, 2019

Choose a reason for hiding this comment

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

执行

hexo clean
hexo g

你确定是这行代码原因?
我看你头像正常阿( Your Blog ?)

@xuelangjing
Copy link

Choose a reason for hiding this comment

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

这是我看这个commit改回了原先代码,不改的话就显示这样

@xuelangjing
Copy link

Choose a reason for hiding this comment

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

<img class="src=&quot;/images/avatar.png&quot;" alt="雪琅">

@tsai-jimmy
Copy link
Contributor Author

@tsai-jimmy tsai-jimmy commented on 2937dc6 Sep 13, 2019

Choose a reason for hiding this comment

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

I Know the reason, Can u try this ?

<img class="<%= is_rounded ? 'is-rounded' : '' %>" src="<%= avatar() %>" alt="<%= get_config_from_obj(widget, 'author') %>">

If it work, then I will fixed it!

@tsai-jimmy
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xuelangjing
Copy link

Choose a reason for hiding this comment

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

感谢大神 现在没问题了

Please sign in to comment.