使用hexo主题及github发布了博客,想在现有博客上添加一个github corner,于是使用下面的方法,由于我只想在主页添加,于是在主题目录下找到index.swig文件,添加如下代码:
<a href="https://your-url" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>