Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l33z22l11/hexo-excerpt-typer
Display excerpt in your articles with typewriter animation.
https://github.com/l33z22l11/hexo-excerpt-typer
hexo hexo-plugin
Last synced: 2 months ago
JSON representation
Display excerpt in your articles with typewriter animation.
- Host: GitHub
- URL: https://github.com/l33z22l11/hexo-excerpt-typer
- Owner: L33Z22L11
- License: mit
- Created: 2024-06-14T10:12:12.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-15T08:57:46.000Z (7 months ago)
- Last Synced: 2024-11-06T17:53:56.981Z (3 months ago)
- Topics: hexo, hexo-plugin
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-excerpt-typer
使用打字机动画在文章开头显示摘要。
## 使用方法
### 安装
```bash
npm i hexo-excerpt-typer
```### 配置
无需配置即可很好工作。你也可以在 `_config.yml` 中添加以下配置:
```yaml
excerpt:
enable: true # 是否启用,默认为 true
title: '纸鹿导读' # 标题,默认为 '作者名+导读'
caret: '_' # 打字动画光标,默认为 '⬤'
cps: 20 # 每秒打字速度,默认为 20
```### 给文章添加摘要
插件会读取文章 front-matter 中的 `summary`、`description`、`excerpt` 字段,如果存在则使用它作为摘要。
如果要禁用某篇文章的摘要,可以在 front-matter 中添加 `noexcerpt: true`。