feat: add a new setting logo_link (#1070)

This commit is contained in:
blahetal
2024-01-24 15:06:36 +01:00
committed by GitHub
parent 32684a0363
commit eba837229a
5 changed files with 23 additions and 4 deletions

View File

@ -203,16 +203,19 @@ display_url: 'https://your-site.com',
## Custom Logo
When the `logo_url` setting is specified, the Static CMS UI will change the logo displayed at the top of the login page, allowing you to brand Static CMS with your own logo. `logo_url` is assumed to be a URL to an image file.
When the `logo_link` setting is specified, the Static CMS UI will wrap the logo in a link, allowing you to make the logo clickable. `logo_link` can be a URL to an external page or an address of one of Static CMS pages giving you a quick link to your favourite page.
**Example:**
<CodeTabs>
```yaml
logo_url: https://your-site.com/images/logo.svg
logo_link: https://your-site.com
```
```js
logo_url: 'https://your-site.com/images/logo.svg',
logo_link: 'https://your-site.com',
```
</CodeTabs>