Skip to main content
Module

x/blog/types.d.ts>BlogSettings

Minimal boilerplate blogging.
Go to Latest
interface BlogSettings
import { type BlogSettings } from "https://deno.land/x/blog@0.5.0/types.d.ts";

Properties

optional
title: string

The blog title

optional
description: string

The blog description

optional
avatar: string

URL to avatar. Can be relative.

optional
avatarClass: string

CSS classes to use with the avatar.

optional
cover: string

URL to background cover. Can be relative.

optional
coverTextColor: string

Color of the text that goes on the background cover.

optional
author: string

The author of the blog. Can be overridden by respective post settings.

optional
header: VNode

The element ot use as header

optional
showHeaderOnPostPage: boolean

Whether to show the header on post pages

optional
section: VNode

The element to use as section

optional
style: string

Custom CSS

optional
ogImage: string | { url: string; twitterCard:
| "summary"
| "summary_large_image"
| "app"
| "player"
; }

URL to open graph image. Can be relative.

optional
middlewares: BlogMiddleware[]

Functions that are called before rendering and can modify the content or make other changes.

optional
lang: string

The ISO code of the language the blog is in

optional
dateFormat: DateFormat

Date appearance

optional
canonicalUrl: string

The canonical URL of the blog

optional
unocss: UnoConfig

UnoCSS configuration

optional
theme: "dark" | "light" | "auto"

Color scheme

optional
favicon: string | { light?: string; dark?: string; }

URL to favicon. Can be relative. Supports dark and light mode variants through "prefers-color-scheme".

optional
port: number

The port to serve the blog on

optional
hostname: string

The hostname to serve the blog on