1.0.3 • Published 11 months ago
@acyort/pigeon v1.0.3
pigeon
Why is the pigeon so big
Install
$ npm i @acyort/pigeon -S
Usage
Configuration
more: https://acyort.js.org/docs/configuration/
# config.yml
# required
template: '@acyort/pigeon' # built-in theme
plugin:
- '@acyort/pigeon'
# optional
favicon: # website favicon
keyword: # website keyword
description: # website description
title: # website title
perpage: 10 # pagination, default 10
menu: # website menu
archives: /archives/
source: # markdown content path, default `source`
repository: user/repo # use github issues content
Writing
page
---
type: page
title: About
---
page contents ...
post
---
title: 中文
date: 2018-02-14
category: chinese
tags:
- tt
---
我年幼时就非常爱好读书。(因为)家里贫穷,(所以)没有办法买书来阅读,常常向藏书的人家去借,亲自抄录,计算着日期按时送还。冬天非常寒冷,砚台里的墨汁像冰一样坚硬,手指(冻得)不能弯曲伸直,也不敢懈怠。
<!-- more -->
抄完后,便马上跑去还书,不敢稍微超过约定的期限。因此有很多人都愿意把书借给我,于是我能够遍观群书。到了成年以后,我更加仰慕古代圣贤的学说,又担心没有才学渊博
Build
$ acyort flow
# width acyort-server
$ acyort server
# github token
$ TOKEN=your github token acyort flow
Hooks
Provides 4 hooks
name | arguments | description |
---|---|---|
pigeon_after_fetch | (issues) | after get github issues(only for github issues) |
pigeon_after_markdown | ({ name, content }) | after get markdown content |
pigeon_before_render | ({ archives, posts, pages, ... }) | before render html |
pigeon_after_render | ({ name, content }, { archives, posts, pages, ... }) | after render html |