Getting started

1. 安装主题 ​ 在 https://github.com/fzdwx/vitepress-blog-theme/releases 页面下载操作系统对应的 bang 压缩文件. bang 是 vitepress-blog-theme 的命令行工具, 用于快速创建博客, 更新主题等 然后运行 bang init 就会在当前目录下生成一个 vitepress-blog-theme 的文件夹, 这个其实也是通过 git clone 实现的, 只是删除了一些不必要的文...

Layout

当前支持的 Layout 有 post, issue, doc, 用来应对各种不同的场景. md--- title: "Getting started" date: 2023-03-23T22:27:31+08:00 draft: false layout: post # post, issue, doc tags: ["intro"] --- 1. post ​ 这个 layout 就是正常博客了, 不会有大纲以及侧边栏. ...

Shortcodes

介绍 vitepress-blog-theme 中一些自带的 ShortCode 1. Gist ​ 假设有一个 gist 路径为 https://gist.github.com/fzdwx/3e9dd948b38f12ef39ae760374a1a016, 那么就可以用下面的代码来引用它: js/* height 为自定义高度, 非必须 */ <Gist user="fzdwx" id="3e9dd948b38f12ef39ae...

Rss3 订阅

在 root 目录下创建 links.md: md--- title: RSS 订阅信息 layout: links feeds: - url: https://blog.rxliuli.com/atom.xml avatar: https://blog.rxliuli.com/favicon.ico - url: https://manateelazycat.github.io/feed.xml avatar: https://manateelazycat.github...

Markdown Extension Examples

This page demonstrates some of the built-in markdown extensions provided by VitePress. Syntax Highlighting ​ VitePress provides Syntax Highlighting powered by Shiki, with additional features like line-highlighting: Input ```js{4} expor...

Runtime API Examples

1 2131 This page demonstrates usage of some of the runtime APIs provided by VitePress. The main useData() API can be used to access site, theme, and page data for the current page. It works in both .md and .vue files: md<script setup> import ...