diff --git a/src/website/index.ejs b/src/website/index.ejs index cebc6b09..5d9b8b8c 100644 --- a/src/website/index.ejs +++ b/src/website/index.ejs @@ -129,7 +129,7 @@ <%}%>
- <%if(logo) {%> + <%if(typeof logo==='string' ) {%> diff --git a/test/example/index.js b/test/example/index.js index a7f9d41a..a1569c88 100644 --- a/test/example/index.js +++ b/test/example/index.js @@ -33,8 +33,8 @@ svgtofont({ index: "unicode", // Enum{"font-class", "unicode", "symbol"} title: "svgtofont", favicon: path.resolve(rootPath, "favicon.png"), - // Must be a .svg format image. - logo: path.resolve(rootPath, "svg", "git.svg"), + // Must be a .svg format image. Missing here to ensure the example works without it. + // logo: path.resolve(rootPath, "svg", "git.svg"), version: pkg.version, meta: { description: "Converts SVG fonts to TTF/EOT/WOFF/WOFF2/SVG format.",