A blog written, developed and hosted on val.town.
Each article on this blog is contained single val, with a #blog
tag.
See this example article.
// #blog
// title: Example Post
import { article } from "https://esm.town/v/pomdtr/article";
import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo";
import { html } from "https://esm.town/v/stevekrouse/html?v=5";
export async function examplePost(req: Request) {
const { author, name } = extractValInfo(import.meta.url);
return html(await article(author, name));
}
Each of these post work on it's own.
This val is able to:
/v1/search
api (with a #blog
query)
This process run each time a user visit the web endpoint, so the blog is always up to date.
You can get your own instance of the blog by just forking this val.