Permalink
Browse files

[fix] Non-broken document.title

  • Loading branch information...
jfhbrook committed Nov 16, 2011
1 parent 5942d5b commit a324e224d0f2ba7a8dff406853a82694c7a53222
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/generators/content.js
  2. +1 −1 theme/article.html
View
@@ -159,11 +159,11 @@ content.weld = function(dom, pages) {
};
// Give the page a title.
- $('title', dom).html('node docs'
- + (metadata && metadata.title)
- ? ' :: ' + metadata.title
- : ''
- );
+ if (metadata && metadata.title) {
+ $('title', dom).html('node docs'
+ + ' :: ' + metadata.title
+ );
+ }
// Add some meta tags. These are populated from a global config as well as
// content metadata.
View
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<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.">
<meta name="keywords" content="">
- <title>article title</title>
+ <title>docs.nodejitsu.com</title>
<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
<link rel="stylesheet" href="/css/nodedocs.css" type="text/css" media="screen">
<link rel="stylesheet" href="/css/highlight/github.css" type="text/css" media="screen">

0 comments on commit a324e22

Please sign in to comment.