summaryrefslogtreecommitdiff
path: root/doc/blog.html
blob: 4aa9d8de38e5deefd5de88f37d62825be6fb961c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!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;
    }
    #column1 {
      font-size: 14px;
    }
    #column1 li, #content h1 + p {
      color:inherit;
      font-family: inherit;
      font-size: 14px;
      line-height:24px;
    }
    #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: "- ";
    }
    #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>

  <title><%= title || "Node.js Blog" %></title>
  <link rel="alternate" type="application/rss+xml"
    title="Node.js Blog RSS"
    href="http://blog.nodejs.org/feed<%=
      (typeof posts !== 'undefined') ? uri : '/'
    %>">
</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>

        <li><a href="http://nodejs.org/download/" class=
        "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
        %>
        <p class="meta"><%-
          post.date.toUTCString().replace(/ GMT$/, '') + ' UTC' +
          (post.author ? ' - ' + post.author : '') +
          (post.category ? ' - <a href="/' + post.category + '/">' +
                            post.category + '</a>' : '')
          %></p>

          <%- post.content %>

          <p class="respond">Please post feedback and comments on
            <a href="https://groups.google.com/group/nodejs">the Node.JS
              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>

          <%
          if (post.next || post.prev) {
            if (post.prev) {
              %><p class="prev"><a href="<%=
                post.prev.permalink
              %>">&larr; <%=
                post.prev.title
              %></a></p>
              <%
            }
            if (post.next) {
              %><p class="next"><a href="<%=
                post.next.permalink
              %>"><%=
                post.next.title
              %> &rarr;</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) %>">
                &larr; Page <%- page %>
              </a></p>
              <%
            }
            if (page < total - 1) { %>
              <p class="next"><a href="<%= uri + (page + 1) %>">
                Page <%- page + 2 %> &rarr;
              </a></p>
              <%
            }
          }

          posts.forEach(function(post) {
            %>
            <div class="post-in-feed">
              <h1><a href="<%=
                post.permalink
              %>" class="permalink"><%-
                post.title
              %></a></h1>

              <p class="meta"><%-
                post.date.toUTCString().replace(/ GMT$/, '') + ' UTC' +
                (post.author ? ' - ' + post.author : '') +
                (post.category ? ' - <a href="/' + post.category + '/">' +
                                  post.category + '</a>' : '')
                %></p>

              <%- 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) %>">
                &larr; Page <%- page %>
              </a></p>
              <%
            }
            if (page < total - 1) { %>
              <p class="next"><a href="<%= uri + (page + 1) %>">
                Page <%- page + 2 %> &rarr;
              </a></p>
              <%
            }
          } // pagination
        } // not a single post
        %>
    </div>
  </div>

  <div id="footer">
      <a href="http://joyent.com" class="joyent-logo">Joyent</a>
      <ul class="clearfix">
          <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>
          <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>
          <li><a href="http://nodejs.org/community/">Community</a></li>
          <li><a href="https://nodejs.org/logos/">Logos</a></li>
          <li><a href="http://jobs.nodejs.org/">Jobs</a></li>
          <li><a href="http://twitter.com/nodejs" class="twitter">@nodejs</a></li>
      </ul>

      <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>
    </div>

  <script src="../sh_main.js"></script>
  <script src="../sh_javascript.min.js"></script>
  <script>highlight(undefined, undefined, 'pre');</script>
  <script>
    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'));
  </script>
</body>
</html>