修复了缩略图无法显示

pull/164/head
Problem233 2016-07-13 12:32:55 +08:00
parent 9abb990b41
commit c9d738637c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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 { %>