Skip to content

Commit

Permalink
Fix undefined title error
Browse files Browse the repository at this point in the history
  • Loading branch information
guiqiqi committed Aug 11, 2021
1 parent e1a940a commit f897047
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/_partial/head.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<head>
<%
let title = config.title;
if (!is_home()) title = page.title + ' | ' + title;
if (page.title !== undefined) {
if (!is_home()) title = page.title + ' | ' + title;
}
%>
<title><%= title %></title>
<% if (theme.favicon) { %>
Expand Down

0 comments on commit f897047

Please # to comment.