mirror of
https://gitea.com/gitea/website.git
synced 2024-06-02 00:11:22 +05:30
6fbaa1503f
![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>
23 lines
669 B
HTML
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>
|
|
<span>{{ .Name }}</span>
|
|
<div class="dropdown-content">
|
|
{{ range .Children }}
|
|
<a class="navbar-item" href="{{ .URL }}">
|
|
<i class="fa fa-{{ .Pre }}"></i>
|
|
{{ .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>
|
|
{{ .Name }}
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|