7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-28 06:40:19 +00:00
web-ansol.org/themes/academic/layouts/partials/functions/get_icon.html

8 lines
267 B
HTML
Raw Normal View History

2020-06-11 11:46:16 +00:00
{{/* 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 }}