mirror of https://github.com/jpanther/congo.git
Compare commits
2 Commits
3adf96de10
...
92172c1a58
Author | SHA1 | Date |
---|---|---|
Wolf Noble | 92172c1a58 | |
Wolf Noble | c1d4f0c003 |
|
@ -7,3 +7,6 @@
|
||||||
{{ if ne .Params.logo nil }}
|
{{ if ne .Params.logo nil }}
|
||||||
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
|
{{ warnf "[CONGO] Theme parameter `logo` has been renamed to `header.logo`. Please update your site configuration." }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if eq .Params.header.logo .Params.header.logo_dark }}
|
||||||
|
{{- warnf "[CONGO] Interactions with a single resource via multiple distinct resource handles can be problematic. It is recommended to only declare `header.logo_dark` when it is distinct from `header.logo`." }}
|
||||||
|
{{- end }}
|
|
@ -5,17 +5,29 @@
|
||||||
<a href="{{ "" | relLangURL }}" class="mr-2">
|
<a href="{{ "" | relLangURL }}" class="mr-2">
|
||||||
<img
|
<img
|
||||||
src="{{ $logo.RelPermalink }}"
|
src="{{ $logo.RelPermalink }}"
|
||||||
width="{{ div $logo.Width 2 }}"
|
{{- if eq $logo.MediaType.SubType "svg" }}
|
||||||
height="{{ div $logo.Height 2 }}"
|
width="25"
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
height="25"
|
||||||
|
class="m-0 p-0 object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
||||||
|
{{- else }}
|
||||||
|
width="{{ div $logo.Width 2 }}"
|
||||||
|
height="{{ div $logo.Height 2 }}"
|
||||||
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo_dark }} hidden dark:flex{{ end }}"
|
||||||
|
{{- end }}
|
||||||
alt="{{ .Site.Title }}"
|
alt="{{ .Site.Title }}"
|
||||||
/>
|
/>
|
||||||
{{- if $logo_dark }}
|
{{- if $logo_dark }}
|
||||||
<img
|
<img
|
||||||
src="{{ $logo_dark.RelPermalink }}"
|
src="{{ $logo_dark.RelPermalink }}"
|
||||||
width="{{ div $logo_dark.Width 2 }}"
|
{{- if eq $logo_dark.MediaType.SubType "svg" }}
|
||||||
height="{{ div $logo_dark.Height 2 }}"
|
width="25"
|
||||||
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left dark:hidden"
|
height="25"
|
||||||
|
class="m-0 p-0 object-scale-down object-left{{ if $logo }} !dark:hidden{{ end }}"
|
||||||
|
{{- else }}
|
||||||
|
width="{{ div $logo_dark.Width 2 }}"
|
||||||
|
height="{{ div $logo_dark.Height 2 }}"
|
||||||
|
class="max-h-[10rem] max-w-[10rem] object-scale-down object-left{{ if $logo }} !dark:hidden{{ end }}"
|
||||||
|
{{- end }}
|
||||||
alt="{{ .Site.Title }}"
|
alt="{{ .Site.Title }}"
|
||||||
/>
|
/>
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
|
Loading…
Reference in New Issue