diff --git a/layout/common/head.ejs b/layout/common/head.ejs index 19ebf62..91a6ef6 100644 --- a/layout/common/head.ejs +++ b/layout/common/head.ejs @@ -21,7 +21,7 @@ <% if (title) { %><%= title %> | <% } %><%= config.title %> <%- 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, diff --git a/layout/common/thumbnail.ejs b/layout/common/thumbnail.ejs index 71a8416..5ad1701 100644 --- a/layout/common/thumbnail.ejs +++ b/layout/common/thumbnail.ejs @@ -1,5 +1,5 @@ - <% var thumbnailUrl = thumbnail(post) %> + <% var thumbnailUrl = post.thunbnail %> <% if (thumbnailUrl) { %> <% } else { %>