feat: add rel-me and mastodon (#114)

![preview](https://gitea.com/attachments/6aa08248-ca59-4f7c-82e2-97ab6d5984a3)

Closes #106

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/gitea/website/pulls/114
Reviewed-by: Lauris BH <lafriks@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john+gitea@jolheiser.com>
Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
This commit is contained in:
John Olheiser 2022-11-22 07:51:33 +08:00 committed by Lunny Xiao
parent cd6b03ec84
commit 6fbaa1503f
2 changed files with 7 additions and 1 deletions

View File

@ -64,6 +64,12 @@ menu:
url: https://discourse.gitea.io/
weight: 70
pre: group
- name: Mastodon
url: https://social.gitea.io/@gitea
weight: 75
pre: mastodon
params:
rel: me
- name: Twitter
url: https://twitter.com/giteaio
weight: 80

View File

@ -14,7 +14,7 @@
</div>
</div>
{{ else }}
<a class="navbar-item" href="{{ .URL }}">
<a class="navbar-item" {{ if eq .Name "Mastodon" }}rel="me"{{ end }} href="{{ .URL }}">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
{{ .Name }}
</a>