Fix relative img path

This commit is contained in:
Gabe Kangas 2023-01-26 16:01:24 -08:00
parent a2c7e8d59f
commit b16a34eb3e
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -26,7 +26,7 @@ emojiCollectionDirs.forEach(collection => {
const emojiCollection = readdirSync(path.resolve(emojiDir, collection)) const emojiCollection = readdirSync(path.resolve(emojiDir, collection))
.filter(f => f.toLowerCase() !== 'license.md') .filter(f => f.toLowerCase() !== 'license.md')
.map(emoji => { .map(emoji => {
return { name: emoji, src: `/img/emoji/${collection}/${emoji}` }; return { name: emoji, src: `img/emoji/${collection}/${emoji}` };
}); });
emojiCollections[collection] = { name: collection, images: emojiCollection }; emojiCollections[collection] = { name: collection, images: emojiCollection };
}); });