File tree Expand file tree Collapse file tree 3 files changed +20
-12
lines changed
Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55
66[ Upcoming Changes] ( https://github.com/patrickarlt/acetate/compare/v2.0.3...master )
77
8+ ## [ 2.0.5] - 2019-02-24
9+
10+ - Changes to ` ignore ` , ` dest ` and ` url ` are now respected when set in transforms.
11+
812## [ 2.0.4] - 2019-02-23
913
1014- Check the resolved version of the pathname inside the ` {% link %} ` helper to determine if the ` is-active ` class should be applied.
Original file line number Diff line number Diff line change @@ -10,23 +10,27 @@ module.exports = function build(acetate) {
1010
1111 return acetate
1212 . getPages ( )
13- . then ( pages => pages . filter ( p => ! p . ignore ) )
1413 . then ( function ( pages ) {
1514 return new Promise ( function ( resolve , reject ) {
1615 const buildQueue = async . queue ( function ( page , callback ) {
1716 return acetate
1817 . transformPage ( page )
19- . then ( page => acetate . renderPage ( page ) )
20- . then ( output => {
21- const outputPath = path . join ( acetate . outDir , page . dest ) ;
22- const outputDirectory = path . join (
23- acetate . outDir ,
24- path . dirname ( page . dest )
25- ) ;
18+ . then ( finalPage => {
19+ if ( finalPage . ignore ) {
20+ return Promise . resolve ( ) ;
21+ } else {
22+ const outputPath = path . join ( acetate . outDir , finalPage . dest ) ;
23+ const outputDirectory = path . join (
24+ acetate . outDir ,
25+ path . dirname ( finalPage . dest )
26+ ) ;
2627
27- return Promise . all ( [ mkdirp ( outputDirectory ) ] ) . then ( ( ) => {
28- return writeFile ( outputPath , output ) ;
29- } ) ;
28+ return mkdirp ( outputDirectory )
29+ . then ( ( ) => acetate . renderPage ( finalPage ) )
30+ . then ( content => {
31+ return writeFile ( outputPath , content ) ;
32+ } ) ;
33+ }
3034 } )
3135 . then ( callback )
3236 . catch ( e => {
Original file line number Diff line number Diff line change 11{
22 "name" : " acetate" ,
33 "description" : " A layout and templating framework for static websites." ,
4- "version" : " 2.0.4 " ,
4+ "version" : " 2.0.5 " ,
55 "author" : " Patrick Arlt <patrick.arlt@gmail.com> (https://patrickarlt.com/)" ,
66 "babel" : {
77 "presets" : [
You can’t perform that action at this time.
0 commit comments