Rename Surfer browser tab name and change favicon?
-
@robi your favicon seems to be that from cloudron. But it generally works. You can see on https://rottig.de
btw. We are using the same template -
@captain-kirk yes I set it to that one as I could type it in quickly..
H5UP FTW (mine looks better
)
@robi I still don't see any favicon on your site. Maybe you removed it as you were only adding it to demonstrate it work?
@Captain-Kirk I see yours. So how did you add it?
Perhaps mine at https://library2.uniteddiversity.coop/favicon.ico doesn't show up because I don't have a index.html file uploaded?
-
@robi I still don't see any favicon on your site. Maybe you removed it as you were only adding it to demonstrate it work?
@Captain-Kirk I see yours. So how did you add it?
Perhaps mine at https://library2.uniteddiversity.coop/favicon.ico doesn't show up because I don't have a index.html file uploaded?
@jdaviescoates it's simple:
<link rel="icon" type="image/png" href="https://rottig.de/www/images/favicon.png"> -
@jdaviescoates it's simple:
<link rel="icon" type="image/png" href="https://rottig.de/www/images/favicon.png">@captain-kirk I assume you've got that in your index.html?
At present I've not got an index.html to put it in! But thanks for the info!
-
@captain-kirk I assume you've got that in your index.html?
At present I've not got an index.html to put it in! But thanks for the info!
@jdaviescoates Sorry, you are right. Every folder has its own index.html
-
Yeah... idk I've never had this issue but I've always had an html file specify a favicon and title. Example: https://atrilahiji.dev/
IMO it is fine as is, but I guess I don't really get the use case. For me if surfer is a simple static file server it should be up to the user to provide html that give it that info rather than add bloat that lets you configure those things in place of having html that does that.
-
@robi I still don't see any favicon on your site. Maybe you removed it as you were only adding it to demonstrate it work?
@Captain-Kirk I see yours. So how did you add it?
Perhaps mine at https://library2.uniteddiversity.coop/favicon.ico doesn't show up because I don't have a index.html file uploaded?
@jdaviescoates it's there. others see it, as do I.
Browsers displaying an HTML page will request a favicon.ico by default. Hence I have no HTML to point to a favicon.
Browsers displaying a directory listing involves no HTML, and hence uses a different subsystem to generate the listing page.
That's what you're hunting down to change, a custom Surfer configuration branded for you.
-
So regarding the use-cases, I see two distinct use-case. One is of course normally serving up static files (like a webpage) including html assets. The second use-case is to use the built-in public file listing. This simply avoids users having to write some script pumping out a nice html page to traverse the tree. For the second one, I can understand why someone would like to have some kind of "branding" here.