Closed stcoats closed 1 year ago
@KCMertens can elaborate on this if needed, but looking at OpenSonar's configuration, it seems the logo is configured in the custom CSS:
.navbar-logo {
background-image: url(../img/logo.png);
width: 188px;
height: 120px;
background-size: 100% 100%;
pointer-events: none;
}
The logo.png
lives in the static/img
dir.
I'm not sure if FaviconDir in search.xml is needed as well (I would guess not), but just in case, this is how OpenSonar configures it:
<FaviconDir>${request:corpusPath}/static/img</FaviconDir>
That is indeed what we do (I probably would have designed it differently these days though).
It's still not showing. I created the same structure as OpenSonar and copied their logo.png into my static/img
folder. I added the navbar-logo
css to custom.css
When I render my page, the logo.png file is not there, and manifest.json
is there. This doesn't change if I refresh the browser cache and restart Blacklab. Earlier, I had copied the entire structure of the default img
folder, including the images and the manifest.json file. I guess manifest.json
it is being cached and restored somewhere within Blacklab?
How should I trouble-shoot this?
Never mind, I got it working with
.navbar-logo {
background-image: url(../static/img/logo.png);
width: 188px;
height: 120px;
background-size: 100% 100%;
pointer-events: none;
}
I want to add a logo, like in the OpenSonar interface. The documentation I can find is comments on the default
search.xml
page. There it saysI tried
${request:contextPath}/img/logo.png
and${request:corpusPath}/static/img/logo.png
. A logo isn't a favicon, though. Does the tag name need to be different? Where can I find documentation about the xml tags that can appear insearch.xml
and other pages?Thanks!