Skip to content

Commit a324e22

Browse files
committed
[fix] Non-broken document.title
1 parent 5942d5b commit a324e22

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/generators/content.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ content.weld = function(dom, pages) {
159159
};
160160

161161
// Give the page a title.
162-
$('title', dom).html('node docs'
163-
+ (metadata && metadata.title)
164-
? ' :: ' + metadata.title
165-
: ''
166-
);
162+
if (metadata && metadata.title) {
163+
$('title', dom).html('node docs'
164+
+ ' :: ' + metadata.title
165+
);
166+
}
167167

168168
// Add some meta tags. These are populated from a global config as well as
169169
// content metadata.

theme/article.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="description" content="docs.nodejitsu.com is a growing collection of how-to articles for node.js, written by the community and curated by Nodejitsu and friends. These articles range from basic to advanced, and provide relevant code samples and insights into the design and philosophy of node itself.">
66
<meta name="keywords" content="">
7-
<title>article title</title>
7+
<title>docs.nodejitsu.com</title>
88
<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
99
<link rel="stylesheet" href="/css/nodedocs.css" type="text/css" media="screen">
1010
<link rel="stylesheet" href="/css/highlight/github.css" type="text/css" media="screen">

0 commit comments

Comments
 (0)