mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
add wikiless favicon support (#51)
This commit is contained in:
@@ -58,6 +58,10 @@ module.exports = (app, utils) => {
|
||||
return res.sendFile(wikilessLogo())
|
||||
}
|
||||
|
||||
if(req.url.startsWith('/static/favicon/wikipedia.ico')) {
|
||||
return res.sendFile(wikilessFavicon())
|
||||
}
|
||||
|
||||
// fr logos
|
||||
if(req.url.startsWith('/static/images/mobile/copyright/')) {
|
||||
return res.sendFile(frLogo(req.url))
|
||||
|
||||
@@ -439,6 +439,11 @@ module.exports = function(redis) {
|
||||
return `${static_path}/wikiless-logo.png`
|
||||
}
|
||||
|
||||
this.wikilessFavicon = () => {
|
||||
const static_path = path.join(__dirname, '../static')
|
||||
return `${static_path}/wikiless-favicon.ico`
|
||||
}
|
||||
|
||||
this.frLogo = (reqUrl) => {
|
||||
return path.join(__dirname, '..', 'static', 'fr', path.basename(reqUrl))
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user