mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
14 lines
492 B
HTML
14 lines
492 B
HTML
{{/* Function to get logo URL for JSONLD. */}}
|
|
{{/* Inputs: page context */}}
|
|
{{/* Output: logo URL (URL) */}}
|
|
|
|
{{ $logo_url := "" }}
|
|
{{ if resources.Get "media/logo.png" | or (resources.Get "media/logo.svg") }}
|
|
{{/* !CACHED! Can safely cache this site logo variant */}}
|
|
{{ $logo_url = (partialCached "functions/get_logo" (dict "constraint" "fit" "size" 192)).Permalink }}
|
|
{{ else }}
|
|
{{ $logo_url = (partial "functions/get_site_icon" 192).Permalink }}
|
|
{{ end }}
|
|
|
|
{{ return $logo_url }}
|