Avatar Setting

Valine is used in Gravatar (with gravatar.cat.net mirror service) as commentator avatar.
Has seven optional values:

value style memo
Empty string:'' Gravatar official graphics Gravatar official graphics
mp Mystic man (a grayhead) Mystic man (a grayhead)
identicon Abstract geometry Abstract geometry
monsterid little monster little monster
wavatar A combination of different faces and backgrounds A combination of different faces and backgrounds
robohash a generated robot with different colors, faces, etc a generated robot with different colors, faces, etc
retro Eight-pixel retro portrait Eight-pixel retro portrait
hide   Hidden avatar

The parameter value hide is supported at v1.1.8-beta.
If the value of avatar is not equal to one of the seven parameters, the default value ismm.

new Valine({
    ...
    avatar:'', // (''/mp/identicon/monsterid/wavatar/robohash/retro/hide)
    avatar_cdn: 'https://cravatar.cn/avatar/' // Customize avatar cdn
});
© 2017 - 2024
Powered By xCss.