Skip to content
Permalink
Browse files

Programatically set title

  • Loading branch information...
gnowland committed May 14, 2019
1 parent 7244423 commit b599040b62e285d32c93c08041b59eae7ffdc822
Showing with 7 additions and 1 deletion.
  1. +7 −1 views/partials/header.ejs
@@ -2,7 +2,13 @@
<html>

<head>
<title><%= title %></title>
<title><%
if (typeof error !== 'undefined') {
%><%= error.status %> Error<%
} else if (typeof title !== 'undefined') {
%><%= title %><%
}
%></title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>

0 comments on commit b599040

Please sign in to comment.
You can’t perform that action at this time.