diff --git a/bin/build-site.js b/bin/build-site.js index bf434ac9..7e6b6c29 100755 --- a/bin/build-site.js +++ b/bin/build-site.js @@ -83,13 +83,16 @@ async function request( url ) { * site/assets/) and include a cache buster in the new name. Return the URL to * the asset file. */ -function copyAssetToBuild( filename, content = null ) { - const destFilename = filename - .replace( /(\.[^.]+)$/, '-' + assetCacheBuster + '$1' ); +function copyAssetToBuild( filename, content = null, addSuffix = true ) { + let destFilename = filename; + if ( addSuffix ) { + destFilename = destFilename + .replace( /(\.[^.]+)$/, '-' + assetCacheBuster + '$1' ); + } const destPath = path.join( siteBuildPath, 'assets', destFilename ); if ( ! content ) { const srcPath = path.join( sitePath, 'assets', filename ); - content = fs.readFileSync( srcPath, 'utf8' ); + content = fs.readFileSync( srcPath ); } fs.writeFileSync( destPath, content ); return '/assets/' + destFilename; @@ -189,6 +192,7 @@ async function buildSite() { rimraf.sync( siteBuildPath ); fs.mkdirSync( siteBuildPath ); fs.mkdirSync( path.join( siteBuildPath, 'assets' ) ); + copyAssetToBuild( 'remoteintech.png', null, false ); // Set up styles/scripts to be included on all pages const stylesheets = [ { diff --git a/site/assets/favicon.png b/site/assets/favicon.png deleted file mode 100644 index 035a0bb1..00000000 Binary files a/site/assets/favicon.png and /dev/null differ diff --git a/site/assets/remoteintech.png b/site/assets/remoteintech.png index e9cd8874..035a0bb1 100644 Binary files a/site/assets/remoteintech.png and b/site/assets/remoteintech.png differ