mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
ui: logo: don't require '/static/' before logo in old ui - consistent with new ui, update docs
This commit is contained in:
parent
08826f886b
commit
8d85fefa57
@ -25,12 +25,13 @@ To enable the logo set the ``ui.logo`` property in ``config.yaml`` to point to t
|
|||||||
|
|
||||||
The URL can be any image URL, including a URL served from the static directory.
|
The URL can be any image URL, including a URL served from the static directory.
|
||||||
|
|
||||||
For example, to add the default pywb logo to the banner, use the following in the config:
|
For example, to add the default pywb logo to the banner, use the following in the config, which will
|
||||||
|
load the logo from ``./static/pywb-logo-sm.png``
|
||||||
|
|
||||||
.. code:: yaml
|
.. code:: yaml
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
logo: /static/pywb-logo-sm.png
|
logo: pywb-logo-sm.png
|
||||||
|
|
||||||
|
|
||||||
New Vue-based UI (Alpha)
|
New Vue-based UI (Alpha)
|
||||||
|
@ -160,8 +160,9 @@ This file is part of pywb, https://github.com/webrecorder/pywb
|
|||||||
logo.setAttribute("class", "_wb_linked_logo");
|
logo.setAttribute("class", "_wb_linked_logo");
|
||||||
|
|
||||||
var logoContents = "";
|
var logoContents = "";
|
||||||
logoContents += "<img src='" + window.banner_info.logoImg + "' alt='" + window.banner_info.logoAlt + "'>";
|
var logoUrl = window.banner_info.staticPrefix + "/" + window.banner_info.logoImg;
|
||||||
logoContents += "<img src='" + window.banner_info.logoImg + "' class='_wb_mobile' alt='" + window.banner_info.logoAlt + "'>";
|
logoContents += "<img src='" + logoUrl + "' alt='" + window.banner_info.logoAlt + "'>";
|
||||||
|
logoContents += "<img src='" + logoUrl + "' class='_wb_mobile' alt='" + window.banner_info.logoAlt + "'>";
|
||||||
|
|
||||||
logo.innerHTML = logoContents;
|
logo.innerHTML = logoContents;
|
||||||
this.banner.appendChild(logo);
|
this.banner.appendChild(logo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user