Home

Awesome

<img width="600" src="pic01.png">

Inspired by xtyxtyx/sorry and vuejs/vuepress

Setup and develop (MacOS)

brew install ffmpeg --with-libass

# SorryPress >
npm run all:install
npm run dev
# 访问 http://localhost:8080/

Deploy

npm i -g pm2 npm-run-all

# SorryPress >
npm start
# 访问 http://localhost:7890/

# 也可以指定一些url配置
PORT=9999 npm start
SITE_ROOT=/sorry/ npm start
SERVER_ROOT=http://abc.com/ npm start

Notes

/* 定制SorryPress的logo */
.hero-2 {
  position: absolute;
  transform: rotateX(-21deg) rotateY(-20deg) rotateZ(-17deg);
}
# 紧急将gif模板及ugc改为低于1M 利于在微信传播 注意借tmp
function ffmpeg_rate() {
  ffmpeg -i "$1.gif" -r $2 "$1.tmp.gif";
  mv "$1.tmp.gif" "$1.gif"
}
ffmpeg_rate wunian 10
# 给gif加入字幕
ffmpeg -i wangjingze.gif \
  -vf "ass=wangjingze.ass" \
  -y out.gif