A simple blogging framework.
- Server-side rendering
- Works on Bun, Cloudflare Workers, etc.
- RSS feed
- Search articles (Full text search is not currently supported)
Download this repository
$ git clone https://github.com/shinosaki/kiji
$ cd ./kiji
Install depends
$ npm i
Customize config file
Config file location is ./config.js
.
lang
: Blog's language (Default:'en'
)onion
: Onion Service's address
If you set onion address, appendOnion-Location
header for response.cache
maxAge
:Cache-Control
header'smax-age
value (Default: Undefined)
menus
: Links for header's menu.links
: Links for side or footer's menu.app
name
: Blog titledescription
: Blog descriptioncopy
: Copyright in footername
: Copyright namelink
: Copyright name's link
Create new post
Create new Markdown file to ./asset/posts/
directory.
or Add articles repository as a git submodule.
$ git submodule add posts.git ./assets/posts
Generate index file
$ npm run posts
Generated posts.json
file in ./asstes
directory.
Start dev server in local Wrangler (Cloudflare Workers)
$ npm run dev
and Open http://localhost:8787
in the browser.
Bun:
$ npm run dev:bun
and Open http://localhost:3000
in the browser.
Deploying Cloudflare Workers
$ npm run deploy
Bun
- Building standalone binary
$ npm run build
- Execution binary
$ npm run production
- hono
- js-yaml
- marked
- zod
- tailwindcss
- wrangler