Files
hugo_it-services/layouts/_partials/logo.html
T
Trez.One 0249a4f89b
Deploy Hugo Site / Check and Create PR (push) Successful in 36s
Deploy Hugo Site / Hugo Sanity Check (push) Successful in 29s
Deploy Hugo Site / PR Merge (push) Successful in 38s
Deploy Hugo Site / Build and Deploy to Server (push) Successful in 52s
Restructuring folder structure due to changes in Hugo 0.146.0.
2025-07-22 20:14:18 -04:00

35 lines
1.1 KiB
HTML

{{- if .Site.Params.header.logo }}
{{- $logo := resources.Get .Site.Params.header.logo }}
{{- $logo_dark := resources.Get .Site.Params.header.logoDark }}
{{- if $logo }}
<a href="{{ "" | relLangURL }}" class="mr-2">
<!-- prettier-ignore-attribute -->
<img
src="{{ $logo.RelPermalink }}"
width="{{ div $logo.Width 2 }}"
height="{{ div $logo.Height 2 }}"
class="site-logo object-left
{{ if $logo_dark }}hidden dark:flex{{ end }}"
alt="{{ .Site.Title }}"
/>
{{- if $logo_dark }}
<img
src="{{ $logo_dark.RelPermalink }}"
width="{{ div $logo_dark.Width 2 }}"
height="{{ div $logo_dark.Height 2 }}"
class="site-logo object-left dark:hidden"
alt="{{ .Site.Title }}"
/>
{{- end }}
</a>
{{- end }}
{{- end }}
{{- if .Site.Params.header.showTitle | default true }}
<a
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
rel="me"
href="{{ "" | relLangURL }}"
>{{ .Site.Title | markdownify | emojify }}</a
>
{{- end }}