{{/* 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") }} {{ $logo_url = (partial "functions/get_logo" (dict "constraint" "fit" "size" 192)).Permalink }} {{ else }} {{ $logo_url = (partial "functions/get_icon" 192).Permalink }} {{ end }} {{ return $logo_url }}