一个有趣的小应用程序,用于从Robohash API创建机器人头像
项目描述
生成机器人头像,可选支持Gravatar回退。
用法
{% load robotars_tags %} {% robotar "bob@example.org" %} {# with gravatar fallback and size #} {% robotar "bob@example.org" "63x63" 1 1 %}
您可以可选地传递以下参数
size: 要生成的robohash的大小。例如:“63x63”
gravatar_fallback: 是否将robohash作为Gravatar服务的回退
hashed: 是否应从robohash中隐藏用户的电子邮件地址。