hugo-geekdoc/exampleSite/content/en/shortcodes/avatar/_index.md
Robert Kaussow 6eb576575e
refactor: move profile size from img to degicated avatar shortcode (#817)
BREAKING CHANGE: The `size=profile` option was removed from the `img` shortcode. To create avatar images the new `avatar` shortcode can be used.
2024-04-07 21:54:12 +02:00

720 B

title resources
Avatar
name src title
avatar avatar.jpg Avatar

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" >}}