feat: add favicon to login page (#7288)

#### What type of PR is this?

/area core
/kind improvement
/milestone 2.20.x

#### What this PR does / why we need it:

Add favicon to login page

#### Which issue(s) this PR fixes:

Fixes #7287 

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
为登录相关的页面添加 Favicon
```
pull/7290/head
Ryan Wang 2025-03-13 10:57:05 +08:00 committed by GitHub
parent 6e6bb42778
commit 30c97d8ea6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@
<title th:text="${title}"></title> <title th:text="${title}"></title>
<link rel="preload" href="/images/wordmark.svg" as="image" type="image/svg+xml" /> <link rel="preload" href="/images/wordmark.svg" as="image" type="image/svg+xml" />
<link rel="preload" href="/images/logo.png" as="image" type="image/png" /> <link rel="preload" href="/images/logo.png" as="image" type="image/png" />
<link th:unless="${#strings.isEmpty(site.favicon)}" rel="icon" th:href="${site.favicon}" />
<th:block th:replace="~{gateway_fragments/common::basicStaticResources}"></th:block> <th:block th:replace="~{gateway_fragments/common::basicStaticResources}"></th:block>