Skip to main content
Module

x/blog/blog.tsx>default

Minimal boilerplate blogging.
Go to Latest
function default
import { default } from "https://deno.land/x/blog@0.2.0/blog.tsx";

The main function of the library.

import blog from "https://deno.land/x/blog/blog.tsx";
blog();

Configure it:

import blog, { ga } from "https://deno.land/x/blog/blog.tsx";
blog({
  title: "My blog title",
  subtitle: "Subtitle",
  header:
    `A header that will be visible on the index page. You can use *Markdown* here.`,
  middlewares: [
    ga("GA-ANALYTICS-KEY"),
  ],
});

Parameters

optional
settings: BlogSettings