Skip to content

Commit fcb4c0f

Browse files
damainrigor789
authored andcommitted
Changing the assets plugin to the static plugin to fix issues with favicons not being copied correctly see: favicon 404 #15 (#33)
1 parent 5e93283 commit fcb4c0f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const collections = require('metalsmith-collections');
88
const linkcheck = require('metalsmith-linkcheck');
99
const dates = require('metalsmith-jekyll-dates');
1010
const sitemap = require('metalsmith-sitemap');
11-
const assets = require('metalsmith-assets');
11+
const static = require('metalsmith-static');
1212
const gzip = require('metalsmith-gzip');
1313
const minify = require('metalsmith-html-minifier');
1414
const watch = require('metalsmith-watch');
@@ -176,8 +176,9 @@ Metalsmith(cwd)
176176
ext: '.html'
177177
}))
178178
// include our static assets
179-
.use(assets({
180-
source: './static'
179+
.use(static({
180+
src: './static',
181+
dest: '.'
181182
}))
182183
// finally check if we have broken links
183184
.use(linkcheck({

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"jstransformer-ejs": "0.0.3",
2424
"marked": "^0.3.9",
2525
"metalsmith": "^2.3.0",
26-
"metalsmith-assets": "^0.1.0",
2726
"metalsmith-collections": "^0.9.0",
2827
"metalsmith-gzip": "^1.1.0",
2928
"metalsmith-html-minifier": "^3.0.0",
@@ -35,6 +34,7 @@
3534
"metalsmith-multi-language": "^0.3.0",
3635
"metalsmith-permalinks": "^0.5.0",
3736
"metalsmith-sitemap": "^1.2.0",
37+
"metalsmith-static": "^0.0.5",
3838
"metalsmith-watch": "^1.0.3",
3939
"mkdirp": "^0.5.1",
4040
"moment": "^2.20.1",

0 commit comments

Comments
 (0)