From c9d738637c54a41e05d340bdca4a876619ef3c18 Mon Sep 17 00:00:00 2001 From: Problem233 Date: Wed, 13 Jul 2016 12:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E5=9B=BE=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/common/head.ejs | 2 +- layout/common/thumbnail.ejs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 { %>