mirror of https://github.com/grpc/grpc.io.git
Style: stop yelling nav menu titles (#439)
This commit is contained in:
parent
0e19ceadf6
commit
3599a3b72c
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div class="column">
|
||||
{{ range site.Menus.main }}
|
||||
{{ $name := .Name | upper }}
|
||||
{{ $name := .Name }}
|
||||
{{ $isExternal := hasPrefix .URL "http" }}
|
||||
<a class="is-size-5 is-size-6-mobile has-text-light" href="{{ .URL }}"{{ if $isExternal }} target="_blank"{{ end }}>
|
||||
<span>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
{{ $isThisSection := hasPrefix $currentSection.RelPermalink .CurrentSection.RelPermalink -}}
|
||||
<div class="nav-section" x-data="{ open: {{ $isThisSection }} }">
|
||||
{{ $isActive := (or $isThisSection (eq $here .RelPermalink)) -}}
|
||||
{{ $title := .Params.short | default .Title | upper -}}
|
||||
{{ $title := .Params.short | default .Title -}}
|
||||
<nav class="level">
|
||||
<div class="level-left">
|
||||
<a class="nav-section-title is-size-5 is-size-6-mobile{{ if $isActive }} is-active{{ end }}" href="{{ .RelPermalink }}">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{{ $menu := site.Menus.main }}
|
||||
|
||||
{{ range $menu }}
|
||||
{{ $name := .Name | upper }}
|
||||
{{ $name := .Name }}
|
||||
{{ if .HasChildren }}
|
||||
{{ $url := .URL | relLangURL }}
|
||||
<div class="navbar-item is-size-5 is-size-6-mobile has-dropdown is-hoverable">
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ $name := .Name | upper }}
|
||||
{{ $name := .Name }}
|
||||
{{ $url := .URL }}
|
||||
{{ $isExternal := hasPrefix .URL "http" }}
|
||||
<a class="navbar-item is-size-5 is-size-6-mobile"{{ with $url }} href="{{ . }}"{{ end }}{{ if $isExternal }} target="_blank"{{ end }}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue