mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-25 22:40:39 +00:00
Robert Kaussow
2f01b4b903
BREAKING CHANGE: The `size=profile` option was removed from the `img` shortcode. To create avatar images the new `avatar` shortcode can be used.
827 B
827 B
title | date | authors | tags | resources | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Avatar Images | 2024-04-27T21:00:00+02:00 |
|
|
|
The avatar shortcode is another custom image shortcode.
Usage
Define a resource in the page front matter.
---
resources:
- name: avatar
src: "images/avatar.jpg"
title: "Avatar"
---
{{</* avatar name="avatar" */>}}
Attributes
{{< propertylist name=shortcode-avatar sort=name order=asc >}}
Example
{{< avatar name=avatar size="small" >}}