Compare commits

..

2 Commits

Author SHA1 Message Date
e4c72903b4 Escape without messing up code block align 2024-06-29 11:38:42 +08:00
ef9f0cadaa Escape tags 2024-06-29 11:37:03 +08:00

View File

@ -23,8 +23,12 @@ To fix this,
2. CD to the base directory and run `wget https://raw.githubusercontent.com/go-gitea/gitea/main/templates/base/head.tmpl`. Make sure your Gitea is updated to the latest version, or choose the right version instead of the `main` branch.
3. Modify `head.tmpl`: Add this line somewhere in the `<head>` section:
<!-- {% raw %} -->
```html
<link rel="canonical" href="{{AppUrl}}{{if $.Link}}{{slice $.Link 1}}{{end}}" />
```
<!-- {% endraw %} -->
4. Restart the gitea service