From d8d6963bb1233f5f5e507f2d57346ac578d3f176 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 18 Feb 2020 02:29:21 +0800 Subject: [PATCH] update --- layout/_partial/article.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index aa20f38..48ccec7 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -5,7 +5,7 @@ <%- partial('meta', {post: post, position: 'header'}) %>
- <% post.photos.forEach(function(photo){ %> + <% (post.photos||[]).forEach(function(photo){ %> <% }) %> <%- post.content %>