申请的事按照 官网要求 一步步做就好啦。这里记录一下添加图标的经过。

基础版

要从官网下载 样式库 才能引用萌备的图标。下载下来解压到 /moebeian 就行。

然后在你的网页 footer 上写上

<link rel="stylesheet" type="text/css" href="/moebeian/style.css">
<span class="icon-MOE"> </span>

NexT 主题适配

对于我正在使用的 Hexo-NexT 主题,需要编辑 next 文件夹中的源文件:

<link rel="stylesheet" type="text/css" href="/moebeian/style.css">
<span class="icon-MOE"> </span>
<!--以下是原有的备案-->
{{- next_url(theme.footer.beian.url, theme.footer.beian.icp + ' ') }}

然后在 NexT 配置文件中编辑

beian:
  enable: true
  icp: 萌ICP备xxxx号
  url: https://icp.gov.moe/?keyword=xxxx

当然,萌备样式库放在了 /source/moebeian 下。