7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-30 09:38:49 +00:00
web-ansol.org/themes/academic/layouts/partials/functions/get_icon.html
2020-06-11 12:46:16 +01:00

8 lines
267 B
HTML

{{/* Function to get website icon image. */}}
{{/* Input: size (int) */}}
{{/* Output: resource (obj) */}}
{{ $icon := resources.GetMatch "images/icon.png" }}
{{ $icon_resized := $icon.Fill (printf "%sx%s Center" (string .) (string .)) }}
{{ return $icon_resized }}