Fix icon size in navbar theme toggle.

- Add navbar boolean to theme-toggle partial arguments.
- Add logic in theme-toggle to set icon size based on navbar boolean.
This commit is contained in:
Jason A. Dour
2024-11-16 18:34:30 -05:00
parent ebdaf0fd4a
commit 5c0698c3c0
2 changed files with 6 additions and 3 deletions

View File

@ -32,7 +32,7 @@
{{- if eq .Params.type "search" -}}
{{- partial "search.html" (dict "params" .Params) -}}
{{- else if eq .Params.type "theme-toggle" -}}
{{- partial "theme-toggle.html" (dict "hideLabel" (.Params.hideLabel | default true)) -}}
{{- partial "theme-toggle.html" (dict "navbar" true "hideLabel" (.Params.hideLabel | default true)) -}}
{{- else -}}
{{- $link := .URL -}}
{{- $external := strings.HasPrefix $link "http" -}}