Skip to content

Commit

Permalink
修复不支持的 ejs 用法
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Aug 27, 2015
1 parent 957804e commit 35cbb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
.done(assets, config.site_static_host, config.mini_assets)
%>

<% if (locals.topic) { %>
<% if (typeof(topic) !== 'undefined') { %>
<title><%= topic.title %> - <%= config.name %></title>
<% } else if (locals.pageTitle) { %>
<% } else if (typeof(pageTitle) !== 'undefined') { %>
<title><%= pageTitle %> - <%= config.name %></title>
<% } else { %>
<title><%= config.description %></title>
Expand Down

0 comments on commit 35cbb52

Please sign in to comment.