mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-11-30 12:00:18 +08:00
Compare commits
2 Commits
a1137b5d7c
...
e4c72903b4
Author | SHA1 | Date | |
---|---|---|---|
e4c72903b4 | |||
ef9f0cadaa |
|
@ -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.
|
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:
|
3. Modify `head.tmpl`: Add this line somewhere in the `<head>` section:
|
||||||
|
|
||||||
|
<!-- {% raw %} -->
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link rel="canonical" href="{{AppUrl}}{{if $.Link}}{{slice $.Link 1}}{{end}}" />
|
<link rel="canonical" href="{{AppUrl}}{{if $.Link}}{{slice $.Link 1}}{{end}}" />
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<!-- {% endraw %} -->
|
||||||
|
|
||||||
4. Restart the gitea service
|
4. Restart the gitea service
|
||||||
|
|
Loading…
Reference in New Issue
Block a user