350 字
2 分钟
(转)fuwari配置
博客从Hugo迁移到astro正好两个月了,astro的fuwari主题用着还是很舒服的,今天有时间把备案号也一起配置过来,大概看了一眼配置文件,没有看到哪里是写备案号的,所以找了找教程。原来是直接在html中添加的吗?合理,原汁原味了属于是,之前用的主题都是给出来现成的配置项了,搞的我有点思维固化了,还是在源文件中直接改更万能。
修改的文件是./fuwari/src/components/Footer.astro,修改后的内容如下:
---
import { profileConfig } from "../config";import { url } from "../utils/url-utils";
const currentYear = new Date().getFullYear();---
<!--<div class="border-t border-[var(--primary)] mx-16 border-dashed py-8 max-w-[var(--page-width)] flex flex-col items-center justify-center px-6">--><div class="transition border-t border-black/10 dark:border-white/15 my-10 border-dashed mx-32"></div><!--<div class="transition bg-[oklch(92%_0.01_var(--hue))] dark:bg-black rounded-2xl py-8 mt-4 mb-8 flex flex-col items-center justify-center px-6">--><div class="transition border-dashed border-[oklch(85%_0.01_var(--hue))] dark:border-white/15 rounded-2xl mb-12 flex flex-col items-center justify-center px-6"> <div class="transition text-50 text-sm text-center"> © <span id="copyright-year">{currentYear}</span> {profileConfig.name}. All Rights Reserved. / <a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> / <a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('sitemap-index.xml')}>Sitemap</a><br> Powered by <a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://astro.build">Astro</a> & <a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://github.com/saicaca/fuwari">Fuwari</a> <a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://beian.miit.gov.cn/">黑ICP备2025041712号-1</a> </div></div>我看教程中的页脚还配置了一个本站运行时间的小功能,之前在hugo中配置过,现在的fuwari挂在edgeone上,暂时先不弄这个了
参考
(转)fuwari配置
https://fuwari.cbba.top/posts/转fuwari配置/