Constructor
new Profile()
- Source:
Example
<Profile
avatar="/author.png"
avatarRounded={true}
author="Author"
authorTitle="Writer"
location="London"
counter={{
post: { title: 'Posts', count: 3, url: '/archives/' },
category: { title: 'Categories', count: 1, url: '/categories/' },
tag: { title: 'Tags', count: 2, url: '/tags/' }
}}
followLink="https://example.com/author"
followTitle="Follow"
socialLinks={[{ name: 'GitHub', url: 'https://github.com/author', icon: 'fab fa-github' }]} />
Members
(static) Cacheable
Adapt Hexo widget options, helpers and site collections to the profile presentation props.
Gravatar takes precedence over widget.avatar; url_for resolves the chosen avatar exactly once.
With no avatar source the component renders no figure or image.
- Source:
- See:
Example
<Profile.Cacheable
site={site}
config={config}
helper={helper}
widget={{ author: 'Author', avatar: '/author.png', avatar_rounded: true }} />