mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-28 07:50:34 +00:00
fix: unify height of header menu items (#198)
This commit is contained in:
parent
d5e0ed0857
commit
dcce1af5b9
@ -40,10 +40,14 @@
|
||||
{{- end }}"
|
||||
class="gblog-nav__entry{{ if $isCurrent }}{{ printf " %s" "is-active" }}{{ end }}"
|
||||
>
|
||||
{{ if $icon }}
|
||||
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
|
||||
{{ end }}
|
||||
{{ .name }}
|
||||
<span class="flex align-center">
|
||||
{{ if $icon }}
|
||||
<svg class="icon {{ .icon }}"><use xlink:href="#{{ .icon }}"></use></svg>
|
||||
{{ end }}
|
||||
<span>
|
||||
{{ .name }}
|
||||
</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
@ -50,7 +50,9 @@
|
||||
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
||||
<li>
|
||||
<a
|
||||
class="gblog-nav__entry {{ if eq $currentPage .RelPermalink }}is-active{{ end }}"
|
||||
class="gblog-nav__entry{{ if eq $currentPage .RelPermalink }}
|
||||
{{ printf " %s" "is-active" }}
|
||||
{{ end }}"
|
||||
href="{{ .RelPermalink }}"
|
||||
>
|
||||
{{ partial "utils/title" . }}
|
||||
|
@ -240,6 +240,7 @@ img {
|
||||
}
|
||||
|
||||
&__entry {
|
||||
line-height: 1.3em;
|
||||
color: $gray-100;
|
||||
text-decoration: none;
|
||||
padding: $padding-4 $padding-8;
|
||||
|
Loading…
Reference in New Issue
Block a user