@@ -13,7 +13,7 @@ const allAuthors = [
13
13
},
14
14
{
15
15
name: ' Danielle Romo' ,
16
- avatar: { src: danielleImage , width: 64 } ,
16
+ avatar: danielleImage ,
17
17
link: ' https://cloudfour.com/is/danielle' ,
18
18
},
19
19
{
@@ -142,7 +142,7 @@ Multiple authors are also supported.
142
142
` authors ` (array ): Array of [author objects ](https :// timber.github.io/docs/reference/timber-user/#properties), each containing:
143
143
144
144
- ` name ` (string ): The author ' s name.
145
- - ` avatar ` (string or object ): If this is an object containing a ` src ` , this will be passed directly to [ the Avatar component ]( / ? path = / docs / components - avatar -- empty ) ( along with any other properties , for example ` srcset ` or ` sizes ` ). Otherwise , it is assumed to be a string and used as the Avatar ' s `src` property .
145
+ - ` avatar ` (string ): A URL for the author ' s avatar. For more complex customization, use the `avatars` block .
146
146
- ` link ` (optional , string ): An ` href ` for the author ' s name to link to, for example a bio page.
147
147
148
148
` author_prefix ` (optional , string , default " By" ): Used to create a more
@@ -154,3 +154,9 @@ accessible user experience by adding visually hidden text, prefixes the author n
154
154
155
155
` date_prefix ` (optional , string , default " Published on" ): Used to create a more
156
156
accessible user experience by adding visually hidden text , prefixes the date value (e .g . " Published on March 31st, 2021" )
157
+
158
+ ## Template Blocks
159
+
160
+ - ` authors ` : The author links to display .
161
+ - ` avatars ` : The [Avatars ](/ ? path = / docs / components - avatar -- empty ), which will be passed to a [Bunch ](/ ? path = / docs / objects - bunch -- of - avatars ). Use this if you want to make deeper customizations to the avatars , for example adding ` srcset ` and ` sizes ` .
162
+ - ` meta_content ` : The date or other additional content to display .
0 commit comments