Style: stop yelling nav menu titles (#439)

This commit is contained in:
Patrice Chalin 2020-10-06 13:57:05 -04:00 committed by GitHub
parent 0e19ceadf6
commit 3599a3b72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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 }}">

View File

@ -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 }}>