Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e0f092

Browse files
authored
fix: use raw SVG for logo on static error page (#20189)
Relates to#20185,#20029,#18878
1 parent057d7da commit0e0f092

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

‎site/static/error.html‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
{{/* This template is used by application handlers to render friendly error
2-
pages when there is a proxy error (for example, when the target app isn't
3-
running). */}}
1+
{{/*
2+
This template is used by application handlers to render friendly error pages
3+
when there is a proxy error (for example, when the target app isn't running).
4+
5+
Since it is served from subdomains, both on proxies and the primary, it MUST
6+
NOT access any external resources. It must be entirely self-contained. This
7+
includes anything in `/static` or `/icon`, as these are not served from
8+
subdomains.
9+
*/}}
410
<!doctype html>
511
<htmllang="en">
612
<head>
@@ -119,7 +125,18 @@
119125
</head>
120126
<body>
121127
<divclass="container">
122-
<imgclass="coder-svg"src="/icon/coder.svg"alt="Coder"/>
128+
{{/*
129+
DO NOT LOAD AN EXTERNAL IMAGE HERE. See the comment at the top of
130+
this file for more details.
131+
*/}}
132+
<svg
133+
class="coder-svg"
134+
viewBox="0 0 66 48"
135+
fill="none"
136+
xmlns="http://www.w3.org/2000/svg"
137+
>
138+
<pathd="M18.996 7C29.9934 7.00003 36.1588 12.5745 36.3671 20.7799L26.8691 21.0919C26.6191 16.5433 22.8492 13.5554 18.996 13.6445C13.7055 13.756 9.78938 17.5243 9.78934 23.5C9.78934 29.4757 13.7054 33.1773 18.996 33.1773C22.8492 33.177 26.5357 30.323 26.9524 25.7743L36.4503 25.9974C36.2004 34.3365 29.6602 40 18.996 40C8.33164 40 0 33.5338 0 23.5C3.90577e-05 13.4216 7.9984 7 18.996 7ZM66 7.97504V39.1914H41.0058V7.97504H66Z"fill="white"/>
139+
</svg>
123140

124141
<h1>
125142
{{- if not .Error.HideStatus }}{{ .Error.Status }} - {{end}}{{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp