0.2.0 • Published 2 years ago
kiji v0.2.0
Kiji
A simple blogging framework.
Features
- Server-side rendering
- Works on Bun, Cloudflare Workers, etc.
- RSS feed
- Search articles (Full text search is not currently supported)
Get Started
Download this repository
$ git clone https://github.com/shinosaki/kiji
$ cd ./kijiInstall depends
$ npm iCustomize 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-Locationheader for response.cachemaxAge:Cache-Controlheader'smax-agevalue (Default: Undefined)
menus: Links for header's menu.links: Links for side or footer's menu.appname: 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/postsGenerate index file
$ npm run postsGenerated posts.json file in ./asstes directory.
Start dev server in local Wrangler (Cloudflare Workers)
$ npm run devand Open http://localhost:8787 in the browser.
Bun:
$ npm run dev:bunand Open http://localhost:3000 in the browser.
Deploying Cloudflare Workers
$ npm run deployBun 1. Building standalone binary
$ npm run build- Execution binary
$ npm run productionAuthor
Dependencies
- hono
- js-yaml
- marked
- zod
- tailwindcss
- wrangler