File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ const path = require('path');
1515const fs = require ( 'fs' ) ;
1616const ncp = require ( 'ncp' ) ;
1717
18- const filterStylusPartials = require ( './plugins/filter-stylus-partials.js' ) ;
19- const mapHandlebarsPartials = require ( './plugins/map-handlebars-partials.js' ) ;
18+ const filterStylusPartials = require ( './plugins/filter-stylus-partials' ) ;
19+ const mapHandlebarsPartials = require ( './plugins/map-handlebars-partials' ) ;
20+ const versions = require ( './source/versions' ) ;
2021
2122/** Build **/
2223
@@ -49,7 +50,8 @@ function traverse (obj, str) {
4950
5051const source = {
5152 project : {
52- versions : require ( './source/versions.json' )
53+ versions,
54+ currentVersion : versions [ 0 ] . version
5355 }
5456} ;
5557
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ section h2 {
2828
2929 <section >
3030 <h2 >io.js</h2 >
31- <strong >Current version: {{ project.versions.0.version }} </strong >
31+ <strong >{{ current- version}} : {{ project.currentVersion }} </strong >
3232 <p >
3333 {{ iojs.intro }}
3434 </p >
Original file line number Diff line number Diff line change 1414 <div class =" home-download" >
1515 <img src =" /static/images/logo-hexagon.svg" alt =" node.js" class =" home-logo" >
1616 <div class =" home-download-details" >
17- <p class =" home-download-version" ><a href =" https://iojs.org/dist/v {{ version }} /" >Version {{ version }} </a ></p >
17+ <p class =" home-download-version" ><a href =" https://iojs.org/dist/{{ project.currentVersion }} /" >Version {{ project.currentVersion }} </a ></p >
1818 <p class =" home-download-list" >
19- {{ download-text }} <a href =" https://iojs.org/dist/v {{ version }} /iojs-v {{ version }} -linux-x64.tar.xz" >Linux</a >,
20- <a href =" https://iojs.org/dist/v {{ version }} /iojs-v {{ version }} -x86.msi" >Win32</a >,
21- <a href =" https://iojs.org/dist/v {{ version }} /iojs-v {{ version }} -x64.msi" >Win64</a >,
22- <a href =" https://iojs.org/dist/v {{ version }} /iojs-v {{ version }} .pkg" >Mac</a > &
23- <a href =" https://iojs.org/dist/v {{ version }} /" >Others</a >
19+ {{ download-text }} <a href =" https://iojs.org/dist/{{ project.currentVersion }} /iojs-{{ project.currentVersion }} -linux-x64.tar.xz" >Linux</a >,
20+ <a href =" https://iojs.org/dist/{{ project.currentVersion }} /iojs-{{ project.currentVersion }} -x86.msi" >Win32</a >,
21+ <a href =" https://iojs.org/dist/{{ project.currentVersion }} /iojs-{{ project.currentVersion }} -x64.msi" >Win64</a >,
22+ <a href =" https://iojs.org/dist/{{ project.currentVersion }} /iojs-{{ project.currentVersion }} .pkg" >Mac</a > &
23+ <a href =" https://iojs.org/dist/{{ project.currentVersion }} /" >Others</a >
2424 </p >
2525 <p ><a href =" https://github.com/nodejs/io.js/blob/master/CHANGELOG.md" >Changelog</a ></p >
2626 </div >
Original file line number Diff line number Diff line change 22layout : download.hbs
33title : Download
44introduction : Download the Node.js source code or a pre-built installer for your platform, and start developing today.
5+ current-version : Current version
56iojs :
67 intro : " In May 2015, the io.js project TSC voted to join the Node.js Foundation and merge back with Node.js.
78 While the project streams are being converged, io.js releases will continue in parallel."
Original file line number Diff line number Diff line change 11---
22title : new.nodejs.org
33layout : index.hbs
4- version : 2.5.0
54download-text : ' Download for'
65description : Bringing the converged nodejs.org/iojs.org to the Node Community!
76updates :
You can’t perform that action at this time.
0 commit comments