1.0.9 • Published 11 months ago
izo-blog v1.0.9
izo-blog
🚀 Installation
npm install izo-blog
🍋 Usage
const izoBlogOptions = {
templates: {
// template_name: template_path
}
}
export default defineConfig((): UserConfig => {
return {
plugins: [
izoBlog(myIzoBlogOptions),
qwikCity(QwikCityOptions),
qwikVite(),
tsconfigPaths(),
],
// ...
}
}
⚡ Options
type IzoBlogOptions = {
templates: { [key: string]: string },
hostname?: string,
buildTemplate?: (route: string, title: string, template: string) => string,
onCreate?: (route: string, title: string, template: string) => void,
onSave?: (route: string) => void,
port?: number
}
✍🏻 Editor
The plugin starts an editor environment server on port 8080 (by default).
- (or CTRL + Space) - Toggle routes menu.
- (or CTRL + S) - Save the current document.
- (or CTRL + D) - Toggle document creator menu.
- Esc - Close routes or creator menu.