2012-06-20 19:14:45 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< link rel = "stylesheet" href = "http://nodejs.org/pipe.css" >
< link rel = "stylesheet" href = "http://nodejs.org/sh_vim-dark.css" >
< style >
#column1 h1 {
clear:both;
}
2012-06-22 04:44:58 +02:00
#column1 {
2012-06-22 04:15:03 +02:00
font-size: 14px;
}
2012-06-20 19:14:45 +02:00
#column1 li, #content h1 + p {
color:inherit;
font-family: inherit;
font-size: 14px;
line-height:24px;
}
2012-06-29 09:45:55 +02:00
#column1 li p + ul {
margin-top:-1em;
}
#column1 ul li ul {
font-size:12px;
line-height:24px;
padding-left: 0;
}
#column1 ul li ul li {
list-style:none;
margin-left:0;
}
#column1 ul li ul li:before {
content: "- ";
}
2012-06-20 19:14:45 +02:00
#content #column1 p.meta, #content #column1 p.respond {
font-size: 14px;
line-height: 24px;
color:#690;
font-family: inherit;
}
#content #column1 p.respond {
font-style:italic;
padding:2em 0;
}
#column1 a {
color: #8c0;
}
#column2 ul {
padding:0;
}
#column2 {
margin-top:-66px!important;
}
div.post-in-feed {
padding-bottom:1em;
}
p.next { float:right; width: 40%; text-align:right; }
p.prev { float:left; width:40%; text-align:left; }
pre { overflow: auto; }
< / style >
2012-06-22 04:20:09 +02:00
< title > < %= title || "Node.js Blog" %>< / title >
2012-06-22 18:04:14 +02:00
< link rel = "alternate" type = "application/rss+xml"
title="Node.js Blog RSS"
href="http://blog.nodejs.org/feed< %=
(typeof posts !== 'undefined') ? uri : '/'
%>">
2012-06-20 19:14:45 +02:00
< / head >
< body class = "int blog" id = "<%= pageid %>" >
< div id = "intro" class = "interior" >
< a href = "/" title = "Go back to the home page" > < img id = "logo" src =
"http://nodejs.org/logo.png" alt="node.js">< / a >
< / div >
< div id = "content" class = "clearfix" >
< div id = "column2" class = "interior" >
< ul >
< li > < a href = "http://nodejs.org/" class = "home" > Home< / a > < / li >
2012-08-13 17:43:26 +02:00
< li > < a href = "http://nodejs.org/download/" class =
2012-06-20 19:14:45 +02:00
"download">Download< / a > < / li >
< li > < a href = "http://nodejs.org/about/" class = "about" > About< / a > < / li >
< li > < a href = "http://search.npmjs.org/" class = "npm" > npm
Registry< / a > < / li >
< li > < a href = "http://nodejs.org/api/" class = "docs" > Docs< / a > < / li >
< li > < a href = "http://blog.nodejs.org/" class = "blog current" > Blog< / a > < / li >
< li > < a href = "http://nodejs.org/community/" class =
"community">Community< / a > < / li >
< li > < a href = "http://nodejs.org/logos/" class =
"logos">Logos< / a > < / li >
< li > < a href = "http://jobs.nodejs.org/" class = "jobs" > Jobs< / a > < / li >
< / ul >
< p class = "twitter" > < a href = "http://twitter.com/nodejs" > @nodejs< / a > < / p >
< / div >
< div id = "column1" class = "interior" >
< h1 > < %- title %>< / h1 >
< % if (typeof post !== 'undefined') {
// just one post on this page
%>
2012-06-29 10:20:13 +02:00
< p class = "meta" > < %-
post.date.toUTCString().replace(/ GMT$/, '') + ' UTC' +
(post.author ? ' - ' + post.author : '') +
(post.category ? ' - < a href = "/' + post.category + '/" > ' +
post.category + '< / a > ' : '')
%>< / p >
2012-06-20 19:14:45 +02:00
< %- post.content %>
< p class = "respond" > Please post feedback and comments on
2012-06-23 11:31:26 +02:00
< a href = "https://groups.google.com/group/nodejs" > the Node.JS
2012-06-29 10:20:59 +02:00
user mailing list< / a > .< br >
Please post bugs and feature requests on
< a href = "https://github.com/joyent/node/issues" > the Node.JS
github repository< / a > .< / p >
2012-06-20 19:14:45 +02:00
< %
if (post.next || post.prev) {
if (post.prev) {
%>< p class = "prev" > < a href = "<%=
post.prev.permalink
%>">← < %=
post.prev.title
%>< / a > < / p >
< %
}
if (post.next) {
%>< p class = "next" > < a href = "<%=
post.next.permalink
%>">< %=
post.next.title
%> → < / a > < / p >
< %
}
}
} else { // not single post page
if (paginated & & total > 1 ) {
if (page > 0) {
// add 1 to all of the displayed numbers, because
// humans are not zero-indexed like they ought to be.
%>
< p class = "prev" > < a href = "<%= uri + (page - 1) %>" >
← Page < %- page %>
< / a > < / p >
< %
}
if (page < total - 1 ) { % >
< p class = "next" > < a href = "<%= uri + (page + 1) %>" >
Page < %- page + 2 %> →
< / a > < / p >
< %
}
}
posts.forEach(function(post) {
%>
< div class = "post-in-feed" >
< h1 > < a href = "<%=
post.permalink
%>" class="permalink">< %-
post.title
%>< / a > < / h1 >
2012-06-29 10:20:13 +02:00
< p class = "meta" > < %-
post.date.toUTCString().replace(/ GMT$/, '') + ' UTC' +
(post.author ? ' - ' + post.author : '') +
(post.category ? ' - < a href = "/' + post.category + '/" > ' +
post.category + '< / a > ' : '')
%>< / p >
2012-06-20 19:14:45 +02:00
< %- post.content %>
< / div >
< %
});
if (paginated & & total > 1 ) {
if (page > 0) {
// add 1 to all of the displayed numbers, because
// humans are not zero-indexed like they ought to be.
%>
< p class = "prev" > < a href = "<%= uri + (page - 1) %>" >
← Page < %- page %>
< / a > < / p >
< %
}
if (page < total - 1 ) { % >
< p class = "next" > < a href = "<%= uri + (page + 1) %>" >
Page < %- page + 2 %> →
< / a > < / p >
< %
}
} // pagination
} // not a single post
%>
< / div >
< / div >
< div id = "footer" >
< ul class = "clearfix" >
2013-03-18 14:40:03 +01:00
< li > < a href = "http://nodejs.org/" > Node.js< / a > < / li >
< li > < a href = "http://nodejs.org/download/" > Download< / a > < / li >
< li > < a href = "http://nodejs.org/about/" > About< / a > < / li >
2012-06-20 19:14:45 +02:00
< li > < a href = "http://search.npmjs.org/" > npm Registry< / a > < / li >
< li > < a href = "http://nodejs.org/api/" > Docs< / a > < / li >
< li > < a href = "http://blog.nodejs.org" > Blog< / a > < / li >
2013-03-18 14:40:03 +01:00
< li > < a href = "http://nodejs.org/community/" > Community< / a > < / li >
< li > < a href = "https://nodejs.org/logos/" > Logos< / a > < / li >
2012-06-20 19:14:45 +02:00
< li > < a href = "http://jobs.nodejs.org/" > Jobs< / a > < / li >
< li > < a href = "http://twitter.com/nodejs" class = "twitter" > @nodejs< / a > < / li >
< / ul >
2012-06-23 11:31:26 +02:00
< p > Copyright < a href = "http://joyent.com/" > Joyent, Inc< / a > , Node.js is a < a href = "/trademark-policy.pdf" > trademark< / a > of Joyent, Inc. View < a href = "https://raw.github.com/joyent/node/master/LICENSE" > license< / a > .< / p >
2012-06-20 19:14:45 +02:00
< / div >
< script src = "../sh_main.js" > < / script >
< script src = "../sh_javascript.min.js" > < / script >
< script > highlight ( undefined , undefined , 'pre' ) ; < / script >
< script >
2012-06-23 11:31:26 +02:00
window._gaq = [['_setAccount', 'UA-10874194-2'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
2012-06-20 19:14:45 +02:00
< / script >
< / body >
< / html >