mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 00:15:13 +00:00
The file uploader in Wowchemy CMS has also been updated to reflect the change. BREAKING CHANGES: - rename assets/images/ to assets/media/ - move default social sharing image (if any) to assets/media/sharing.*
8 lines
266 B
HTML
8 lines
266 B
HTML
{{/* Function to get website icon image. */}}
|
|
{{/* Input: size (int) */}}
|
|
{{/* Output: resource (obj) */}}
|
|
|
|
{{ $icon := resources.GetMatch "media/icon.png" }}
|
|
{{ $icon_resized := $icon.Fill (printf "%sx%s Center" (string .) (string .)) }}
|
|
{{ return $icon_resized }}
|