website/layouts/partials/toplinks.html
Gusted c9bdf22531 Add Matrix link (#105)
- Add Matrix link to header.
- Switch to [Fork-Awesome](https://forkaweso.me/Fork-Awesome/), as it
includes a matrix icon. This requires the inclusion from `header.html`
to change the otherwise hardcoded Font-Awesome style.

Reviewed-on: https://gitea.com/gitea/website/pulls/105
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-committed-by: Gusted <williamzijl7@hotmail.com>
2022-02-01 07:10:39 +08:00

23 lines
623 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" href="{{ .URL }}">
<i class="fa fa-{{ .Pre }}"></i>&nbsp;
{{ .Name }}
</a>
{{ end }}
{{ end }}