开源这个博客的源码 — Notionic

方法 1: 我更喜欢用图片的格式

编辑 Avatar.js 文件, 清空里面的内容, 替换为下面代码:
notion imagenotion image
import * as React from 'react' const Avatar = (props) => ( <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500' style={{ opacity: 1 }} {...props} > <image x='0' y='0' width='100%' height='100%' clip-path='url(#shape)' href='https://' preserveAspectRatio='none'></image> <clipPath id='shape'> <path id='blob'> <animate attributeName='d' dur='10s' repeatCount='indefinite' values='M440.5,320.5Q418,391,355.5,442.5Q293,494,226,450.5Q159,407,99,367Q39,327,31.5,247.5Q24,168,89,125.5Q154,83,219.5,68Q285,53,335.5,94.5Q386,136,424.5,193Q463,250,440.5,320.5Z;M453.78747,319.98894Q416.97789,389.97789,353.96683,436.87838Q290.95577,483.77887,223.95577,447.43366Q156.95577,411.08845,105.64373,365.97789Q54.33169,320.86732,62.67444,252.61056Q71.01719,184.3538,113.01965,135.21007Q155.02211,86.06634,220.52211,66.46683Q286.02211,46.86732,335.5,91.94472Q384.97789,137.02211,437.78747,193.51106Q490.59704,250,453.78747,319.98894Z;M411.39826,313.90633Q402.59677,377.81265,342.92059,407.63957Q283.24442,437.46649,215.13648,432.5428Q147.02853,427.61911,82.23325,380.9572Q17.43796,334.29529,20.45223,250.83809Q23.46649,167.38089,82.5856,115.05707Q141.70471,62.73325,212.19045,63.73015Q282.67618,64.72705,352.67308,84.79839Q422.66998,104.86972,421.43486,177.43486Q420.19974,250,411.39826,313.90633Z;M440.5,320.5Q418,391,355.5,442.5Q293,494,226,450.5Q159,407,99,367Q39,327,31.5,247.5Q24,168,89,125.5Q154,83,219.5,68Q285,53,335.5,94.5Q386,136,424.5,193Q463,250,440.5,320.5Z;'></animate> </path> </clipPath> </svg> ) export default Avatar
其中 href='https://' 改为你的图片链接. 最后在 Home.js 文件里修改 ./NotionAvatar.js./Avatar.js 即可.
notion imagenotion image

方法 2: 我更喜欢 Notion 手绘风格

首先在这个网站上生成你的形象, 然后导出你的形象为 svg 格式, 把你的 svg 文件用文本编辑器打开, 修改 NotionAvatar.js 文件中 <svg> 标签里面的内容.
💡
简单来说就是用你的 svg 文件里的 <path> 替换掉 NotionAvatar.js 原有的 <path> 即可, 注意一下代码的缩进.
notion imagenotion image
对于本文内容有任何疑问, 可与我联系.