You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Firefox and Chrome this did not work and the CSS was not applied to the rendered HTML page.
Adding rel="stylesheet" to the link tag solved the issue for both browsers: <link rel="stylesheet" type="text/css" href="{{AppSubUrl}}/assets/css/my-style-XXXXX.css" />
I will also add a pull request including the changes.
Gitea Version
1.16.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Windows
How are you running Gitea?
We are are using the prebuilt Gitea binaries on a Windows 2019 server.
Database
None
The text was updated successfully, but these errors were encountered:
)
The documentation is missing the rel attribute. Neither Firefox nor
Chrome did use the linked file as CSS if rel="stylesheet" is not set.
The problem is described in issue #22434.
Co-authored-by: silverwind <me@silverwind.io>
Description
The documentation gives this code snippet (see https://github.com/go-gitea/gitea/blob/main/docs/content/doc/advanced/external-renderers.en-us.md?plain=1#L195)
<link type="text/css" href="{{AppSubUrl}}/assets/css/my-style-XXXXX.css" />
In Firefox and Chrome this did not work and the CSS was not applied to the rendered HTML page.
Adding
rel="stylesheet"
to the link tag solved the issue for both browsers:<link rel="stylesheet" type="text/css" href="{{AppSubUrl}}/assets/css/my-style-XXXXX.css" />
I will also add a pull request including the changes.
Gitea Version
1.16.4
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Windows
How are you running Gitea?
We are are using the prebuilt Gitea binaries on a Windows 2019 server.
Database
None
The text was updated successfully, but these errors were encountered: