mirror of
https://github.com/imfing/hextra.git
synced 2025-07-12 19:51:38 -04:00
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:
@ -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" -}}
|
||||
|
Reference in New Issue
Block a user