Skip to content

Commit

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

0 comments on commit e1a940a

Please # to comment.