Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
chore: remove text macros
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Mar 31, 2024
1 parent 1f400a9 commit 66cc0a9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 115 deletions.
18 changes: 0 additions & 18 deletions pages/docs/features.mdx
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
# 主要功能

## Mix Space + Markdown > HTML

Mix Space 的 Markdown 除了支持标准的 Markdown 语法和 GFM 外,还支持「文本宏」,它可以让你在文章中使用动态数据,比如:

```html /[[ #dayjs($modified).format('YY-MM') ]]/
<p align="right">更新于 [[ #dayjs($modified).format('YY-MM') ]]</p>
```

在经过 Mix Space 处理后,会被替换成:

```html /22-04/
<p align="right">更新于 22-04</p>
```

这种简易的以 `[[` 开头, `]]` 结尾的语法,非常便于使用。你甚至可以使用任意 JS 代码去执行一个函数,也可以是一个 JS 语句。

了解更多有关文本宏的信息 [功能 - 文本宏](/usage/macros)

## 日记

作为个人空间,日记是必不可少的功能。Mix Space 的日记功能非常强大,它支持:
Expand Down
1 change: 0 additions & 1 deletion pages/usage/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"type": "separator",
"title": "官方指南"
},
"macros": "文本宏",
"serverless": "云函数",
"xlog": "xLog 集成",
"search": "Algolia Search",
Expand Down
1 change: 0 additions & 1 deletion pages/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { UilHistoryAlt } from '@components/Icons/HistoryAlt'
import { UilArrowCircleUp } from '@components/Icons/ArrowCircleUp'

<Cards num={3}>
<Card icon={<UimMasterCard />} arrow href={'/usage/macros'} title="文本宏" />
<Card
icon={<UilCloudDatabaseTree />}
arrow
Expand Down
95 changes: 0 additions & 95 deletions pages/usage/macros.mdx

This file was deleted.

0 comments on commit 66cc0a9

Please sign in to comment.