mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-12-29 07:06:05 +00:00
8 lines
267 B
HTML
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 }}
|