@@ -13,7 +13,7 @@ const allAuthors = [
1313 },
1414 {
1515 name: ' Danielle Romo' ,
16- avatar: { src: danielleImage , width: 64 } ,
16+ avatar: danielleImage ,
1717 link: ' https://cloudfour.com/is/danielle' ,
1818 },
1919 {
@@ -142,7 +142,7 @@ Multiple authors are also supported.
142142` authors ` (array ): Array of [author objects ](https :// timber.github.io/docs/reference/timber-user/#properties), each containing:
143143
144144- ` 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 .
146146- ` link ` (optional , string ): An ` href ` for the author ' s name to link to, for example a bio page.
147147
148148` 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
154154
155155` date_prefix ` (optional , string , default " Published on" ): Used to create a more
156156accessible 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