标签云效果优化
This commit is contained in:
parent
0b28edc40c
commit
ee7e3fe114
@ -51,13 +51,13 @@
|
||||
<!--
|
||||
<%- image_tag(post.thumbnail, { class: "thumbnail" }) %>
|
||||
-->
|
||||
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%= post.thumbnail %>" alt="<%= post.title %>" >
|
||||
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%= post.thumbnail %>" alt="<%= post.title %>" >
|
||||
<% } else if (post.photos.length) { %>
|
||||
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%= url_for(post.photos[0]) %>" alt="<%= post.title %>" >
|
||||
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%= url_for(post.photos[0]) %>" alt="<%= post.title %>" >
|
||||
<% } else if (theme.CDN) { %>
|
||||
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%- url_for(theme.CDN + 'thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
|
||||
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%- url_for(theme.CDN + 'thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
|
||||
<% } else { %>
|
||||
<img class="thumbnail" src="<%- url_for('img/loading2.gif') %>" data-echo="<%- url_for('img/thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
|
||||
<img class="thumbnail" src="<%- url_for('img/default-image.jpg') %>" data-echo="<%- url_for('img/thumbnail/' + numSum%10 + '.jpg') %>" alt="默认配图" >
|
||||
<% } %>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -76,6 +76,7 @@
|
||||
.tags-cloud > a
|
||||
margin 0 3px
|
||||
position relative
|
||||
word-break: keep-all
|
||||
&::after
|
||||
content ''
|
||||
display block
|
||||
@ -85,7 +86,8 @@
|
||||
position absolute
|
||||
bottom -3px
|
||||
left: 0
|
||||
background #aaa
|
||||
background-color #ccc
|
||||
background-color currentColor
|
||||
transition all 0.3s ease-in-out
|
||||
// 通过transform的缩放scale来让初始时x轴为0
|
||||
transform scale3d(0,1,1)
|
||||
|
||||
BIN
themes/hexo-theme-xups/source/img/default-image.jpg
Normal file
BIN
themes/hexo-theme-xups/source/img/default-image.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 90 KiB |
Loading…
x
Reference in New Issue
Block a user