mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-06-16 15:20:54 +02:00
Robert Kaussow
6eb576575e
BREAKING CHANGE: The `size=profile` option was removed from the `img` shortcode. To create avatar images the new `avatar` shortcode can be used.
47 lines
720 B
Markdown
47 lines
720 B
Markdown
---
|
|
title: Avatar
|
|
resources:
|
|
- name: avatar
|
|
src: "avatar.jpg"
|
|
title: "Avatar"
|
|
---
|
|
|
|
The avatar shortcode is another custom image shortcode.
|
|
|
|
<!--more-->
|
|
|
|
## Usage
|
|
|
|
Define a resource in the page front matter.
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
```md
|
|
---
|
|
resources:
|
|
- name: avatar
|
|
src: "images/avatar.jpg"
|
|
title: "Avatar"
|
|
---
|
|
|
|
{{</* avatar name="avatar" */>}}
|
|
```
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
## Attributes
|
|
|
|
<!-- prettier-ignore-start -->
|
|
<!-- spellchecker-disable -->
|
|
{{< propertylist name=shortcode-avatar sort=name order=asc >}}
|
|
<!-- spellchecker-enable -->
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## Example
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
{{< avatar name=avatar size="small" >}}
|
|
|
|
<!-- spellchecker-enable -->
|