feat: add rel-me and mastodon

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser 2022-11-21 10:09:56 -06:00
parent cd6b03ec84
commit 1726c31c23
No known key found for this signature in database
GPG Key ID: B853ADA5DA7BBF7A
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 .Params.rel }}rel="{{ .Params.rel }}"{{ end }} href="{{ .URL }}">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
{{ .Name }}
</a>