7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-22 22:31:32 +00:00
web-ansol.org/themes/academic/layouts/partials/functions/get_logo_url.html

13 lines
422 B
HTML
Raw Normal View History

2020-06-11 11:46:16 +00:00
{{/* Function to get logo URL for JSONLD. */}}
{{/* Inputs: page context */}}
{{/* Output: logo URL (URL) */}}
{{ $logo_url := "" }}
{{ if resources.Get "images/logo.png" | or (resources.Get "images/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 }}