Skip to content

个性的astro博客

这玩意看起来也能做文档

项目https://github.com/ReaJason/astro-blog
原站https://www.reajason.com/

预览

个性的astro博客

个性的astro博客

修改

astro.config.mjs 修改站点链接

src/configs/sideBar.ts 修改侧栏项目

关闭侧栏最下面的多余链接 直接删

src/configs/site.ts 修改站点信息 标题 作者 头像 描述 关键词 联系方式等

侧栏上面那个标题 忘了在哪个文件里 挨个搜一下修改

src/layouts/Layout.astro 删除下面这一段统计分析

bash
    <script>
      (function () {
        var el = document.createElement("script");
        el.setAttribute("src", "https://us.umami.is/script.js");
        el.setAttribute(
          "data-website-id",
          "9b120de6-0c44-46c9-83c6-2edb83911768",
        );
        el.setAttribute("data-auto-track", "false");
        document.body.appendChild(el);
      })();
    </script>
    <script lang="js">
      document.addEventListener("astro:page-load", () => {
        if (window.umami) {
          window.umami.track((props) => ({
            ...props,
            website: "9b120de6-0c44-46c9-83c6-2edb83911768",
            url: document.location.pathname,
            title: document.title,
          }));
        }
      });
    </script>

其它

再搞个搜索就完美了
这文章路径有点意思
文章是放在blog文件夹的 但链接路径确是writing

MD文章抬头

bash
---
title: 一级标题
date: "2021-05-01 00:00:00"
tags: [Skill] 标签
categories: [Windows] 分类
index_img: 头图地址
description: "🙄文章摘要描述"
---