Documentation: CSS import code snippet for external renderers does not work #10098

Closed
opened 2025-11-02 08:58:09 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @sbannier on GitHub (Jan 13, 2023).

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

Originally created by @sbannier on GitHub (Jan 13, 2023). ### 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
GiteaMirror added the type/bug label 2025-11-02 08:58:09 -06:00
Author
Owner

@lunny commented on GitHub (Jan 19, 2023):

closed by #22435

@lunny commented on GitHub (Jan 19, 2023): closed by #22435
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10098