修复了缩略图无法显示
parent
9abb990b41
commit
c9d738637c
|
@ -21,7 +21,7 @@
|
|||
<title><% if (title) { %><%= title %> | <% } %><%= config.title %></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
<%- open_graph({
|
||||
image: thumbnail(page),
|
||||
image: page.thumbnail,
|
||||
fb_app_id: theme.miscellaneous.open_graph.fb_app_id,
|
||||
fb_admins: theme.miscellaneous.open_graph.fb_admins,
|
||||
twitter_id: theme.miscellaneous.open_graph.twitter_id,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<a href="<%- url_for((post.link ? post.link : post.path)) %>" class="thumbnail">
|
||||
<% var thumbnailUrl = thumbnail(post) %>
|
||||
<% var thumbnailUrl = post.thunbnail %>
|
||||
<% if (thumbnailUrl) { %>
|
||||
<span style="background-image:url(<%= thumbnailUrl %>)" alt="<%= post.title %>" class="thumbnail-image"></span>
|
||||
<% } else { %>
|
||||
|
|
Loading…
Reference in New Issue