Skip to content

Commit

Permalink
Merge pull request #6 from atolye15/bugfixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
hsnaydd authored Aug 14, 2020
2 parents 3147b1c + 6c01214 commit 39b6584
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 97 deletions.
6 changes: 3 additions & 3 deletions extend/kssIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ module.exports = function(Twig) {
});

iconNames.forEach(item => {
var innerContext = Twig.ChildContext(context);
var innerContext = {...context};
innerContext.icon = {};
innerContext.icon.name = item;

output.push(Twig.parse.apply(this, [token.output, innerContext]));
output.push(this.parse(token.output, innerContext));
Twig.merge(context, innerContext, true);
});

return {
chain: chain,
output: Twig.output.apply(this, [output]),
output: output.join(''),
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion kss-assets/kss.css

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions kss-assets/kss.scss
Original file line number Diff line number Diff line change
Expand Up @@ -827,8 +827,6 @@ $kss-vertical-rhythm: $kss-font-size * 1.5;
.kss-icons__name {
display: block;
overflow: hidden;
margin-left: auto;
margin-right: auto;
text-overflow: ellipsis;
white-space: nowrap;
}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@atolye15/kss-node-twig-builder",
"version": "1.2.0",
"version": "1.2.1",
"description": "The Twig.js builder for kss-node that used by Atölye15.",
"main": "builder.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"sass": "./node_modules/.bin/node-sass --output-style compressed kss-assets/kss.scss kss-assets/kss.css"
},
"devDependencies": {
"node-sass": "^4.13.0",
"highlight.js": "^9.12.0"
"highlight.js": "^10.1.2",
"node-sass": "^4.14.1"
}
}
Loading

0 comments on commit 39b6584

Please sign in to comment.