diff options
author | Sascha Bannier <sascha.bannier@gmail.com> | 2023-01-14 00:25:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 23:25:15 +0000 |
commit | 20e3ffd2085d7066b3206809dfae7b6ebd59cb5d (patch) | |
tree | dcd478ab80a4e5bb5ef9e4b9c81e9384e05b2fee | |
parent | 02ae63297bd622bf453a930ce8dd180a58e11ed9 (diff) | |
download | gitea-20e3ffd2085d7066b3206809dfae7b6ebd59cb5d.tar.gz gitea-20e3ffd2085d7066b3206809dfae7b6ebd59cb5d.zip |
Fix stylesheet HTML snippet for external renderers documentation (#22435)
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>
-rw-r--r-- | docs/content/doc/advanced/external-renderers.en-us.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/doc/advanced/external-renderers.en-us.md b/docs/content/doc/advanced/external-renderers.en-us.md index f40c23dd84..244fcd7c83 100644 --- a/docs/content/doc/advanced/external-renderers.en-us.md +++ b/docs/content/doc/advanced/external-renderers.en-us.md @@ -192,5 +192,5 @@ And so you could write some CSS: Add your stylesheet to your custom directory e.g `custom/public/css/my-style-XXXXX.css` and import it using a custom header file `custom/templates/custom/header.tmpl`: ```html -<link type="text/css" href="{{AppSubUrl}}/assets/css/my-style-XXXXX.css" /> +<link rel="stylesheet" href="{{AppSubUrl}}/assets/css/my-style-XXXXX.css" /> ``` |