mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-18 07:23:09 +00:00
Merge pull request #1593 from gethinode/develop
fix: improve layout of bitmap logos in navbar
This commit is contained in:
@@ -98,7 +98,7 @@
|
|||||||
"title" $title
|
"title" $title
|
||||||
"image-height" $height
|
"image-height" $height
|
||||||
"mode" $mode
|
"mode" $mode
|
||||||
"class" (printf "h-100 %s" $class)
|
"class" $class
|
||||||
) }}
|
) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -147,8 +147,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* Insert the brand logo or name */}}
|
{{/* Insert the brand logo or name */}}
|
||||||
<div class="width-100 width-{{ $args.breakpoint }}-auto {{ if not $logo }}my-auto {{ end }} {{ if eq $align "center" }}text-center{{ end }}">
|
<div class="width-100 d-flex align-items-center width-{{ $args.breakpoint }}-auto">
|
||||||
<a class="navbar-brand" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
<a class="navbar-brand{{ if eq $align "center" }} mx-auto{{ end }}" href="{{ site.Home.RelPermalink }}" aria-label="{{ T "home" }}">
|
||||||
{{- with $logo -}}{{ . }}{{- else -}}<div class="p-0 navbar-title-{{ $align }} fw-bold h-100">{{ $title }}</div>{{- end -}}
|
{{- with $logo -}}{{ . }}{{- else -}}<div class="p-0 navbar-title-{{ $align }} fw-bold h-100">{{ $title }}</div>{{- end -}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user