Skip to main content


Minimal boilerplate blogging. All you need is one boilerplate JavaScript file that has 2 lines of code:

import blog from "";


Getting started

To initialize your own blog you can run following script:

$ deno run -r --allow-read --allow-write ./directory/for/blog/

This command will setup a blog with a “Hello world” post so you can start writing right away.

Start local server with live reload:

$ deno task dev

To ensure the best development experience, make sure to follow Set up your environment from the Deno Manual.


You can customize your blog as follows:

import blog, { ga, redirects } from "";
import { unocss_opts } from "./unocss.ts";

  author: "Dino",
  title: "My Blog",
  description: "The blog description.",
  avatar: "avatar.png",
  avatarClass: "rounded-full",
  links: [
    { title: "Email", url: "" },
    { title: "GitHub", url: "" },
    { title: "Twitter", url: "" },
  lang: "en",
  dateStyle: "long", // localised format based on
  middlewares: [
      "/foo": "/my_post",
      // you can skip leading slashes too
      "bar": "my_post2",
  unocss: unocss_opts, // check
  favicon: "favicon.ico",


By default, we render the header and footer with builtin template using the blog settings. You can customize them as follows:

/** @jsx h */

import blog, { h } from "";

  title: "My Blog",
  header: <header>Your custom header</header>,
  showHeaderOnPostPage: true, // by default, the header will only show on home, set showHeaderOnPostPage to true to make it show on each post page
  section: <section>Your custom section</section>,
  footer: <footer>Your custom footer</footer>,

Beware to use .tsx extension to this extent.

Hosting with Deno Deploy

To deploy the project to the live internet, you can use Deno Deploy:

  1. Push your project to GitHub.
  2. Create a Deno Deploy project.
  3. Link the Deno Deploy project to the main.tsx file in the root of the created repository.
  4. The project will be deployed to a public $ subdomain.

Self hosting

You can also self-host the blog, in such case run:

$ deno task serve