website/layouts/partials/toplinks.html
John Olheiser 6fbaa1503f 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>
2022-11-22 07:51:33 +08:00

23 lines
669 B
HTML

<span class="navbar-item logo"><img src="{{ .Site.BaseURL }}images/gitea.png" alt="{{ .Site.Title }}"></span>
{{ range .Site.Menus.page }}
{{ if .HasChildren }}
<div class="navbar-item dropdown">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
<span>{{ .Name }}</span>
<div class="dropdown-content">
{{ range .Children }}
<a class="navbar-item" href="{{ .URL }}">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
{{ .Name }}
</a>
{{ end }}
</div>
</div>
{{ else }}
<a class="navbar-item" {{ if eq .Name "Mastodon" }}rel="me"{{ end }} href="{{ .URL }}">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
{{ .Name }}
</a>
{{ end }}
{{ end }}