Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] Non-broken document.title

  • Loading branch information...
commit a324e224d0f2ba7a8dff406853a82694c7a53222 1 parent 5942d5b
@jfhbrook jfhbrook authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/generators/content.js
  2. +1 −1  theme/article.html
View
10 lib/generators/content.js
@@ -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
2  theme/article.html
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.