Skip to content

Commit cd80e84

Browse files
committed
Added font-awesome
1 parent 71493d2 commit cd80e84

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

build.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ metalsmith.use(markdown({
3131
* Transform Asciidoc files to HTML
3232
*/
3333
metalsmith.use(asciidoctor({
34-
pattern: "**/*.adoc"
34+
pattern: "**/*.adoc",
35+
options: {
36+
attributes: {
37+
"icons": "font"
38+
}
39+
}
3540
}));
3641

3742
/*
@@ -88,6 +93,10 @@ metalsmith.use(assets([
8893
{
8994
"src": "assets",
9095
"dest": "."
96+
},
97+
{
98+
"src": "node_modules/font-awesome/fonts",
99+
"dest": "fonts"
91100
}
92101
]));
93102

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"devDependencies": {
1212
"bootstrap": "3.3.7",
1313
"browser-sync": "^2.18.8",
14+
"font-awesome": "^4.7.0",
1415
"handlebars": "4.0.5",
1516
"metalsmith": "1.7.0",
1617
"metalsmith-asciidoctor": "^1.1.0",

src/css/style.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@import "node_modules/bootstrap/less/bootstrap.less";
2+
@import "node_modules/font-awesome/less/font-awesome.less";
23
@import "src/css/custom.less";

0 commit comments

Comments
 (0)