| | |
| | | <img src="{{ $litPath }}" alt="{{ site.Title }} Logo"> |
| | | </picture> |
| | | <div class="nav_toggle toggle" title='{{ T "site_menu" }}'> |
| | | {{ partial "sprite" (dict "icon" "harmburger") }} |
| | | {{- partial "sprite" (dict "icon" "harmburger") }} |
| | | </div> |
| | | </a> |
| | | <ul class="nav_body"> |
| | |
| | | <a class="nav-link{{if $active }} active{{end}}" href="{{ $url }}"><span{{if $active }} class="active"{{end}}>{{ T .Identifier | default .Name }}</span></a> |
| | | </li> |
| | | {{- end }} |
| | | {{ $repo := $config.source }} |
| | | {{ with $config.source }} |
| | | {{- $repo := $config.source }} |
| | | {{- with $config.source }} |
| | | <li class="nav-item nav_repo"> |
| | | <a class="nav-link" href="{{ .url }}" target="_blank"> |
| | | {{ if .iconLight }} |
| | | {{- if .iconLight }} |
| | | {{- $litPath := absURL .iconLight }} |
| | | {{- $darkPath := absURL .iconDark }} |
| | | <picture data-lit="{{ $litPath }}" data-dark="{{ $darkPath }}"> |
| | | <img src="{{ $litPath }}" alt="{{ .name }} Repo"> |
| | | </picture> |
| | | {{ else }}{{ .name }}{{ end }} |
| | | {{- else }}{{ .name }}{{ end }} |
| | | </a> |
| | | </li> |
| | | {{ end }} |
| | | {{- end }} |
| | | <li class="nav-item">{{ partial "mode" . }}</li> |
| | | </ul> |
| | | </nav> |