A minimal, elegant markdown blog template for Val Town that works perfectly with build.moi.
This template consists of just two files:
The main.tsx file loads your moi.md content, parses the frontmatter, and renders it as a beautifully styled blog post. It's designed to work perfectly with build.moi, which will display your blog as a post with a direct link to the live version.
To use this template:
Your moi.md file should have YAML frontmatter at the top followed by your markdown content:
---
title: "Your Blog Post Title"
description: "A brief description of your post"
author: "Your Name"
date: "YYYY-MM-DD"
url: "Your live blog URL"
imageUrl: "Cover image URL (2:3 ratio works best)"
tags: ["tag1", "tag2", "tag3"]
---
# Your blog content here
Write your blog post in markdown...
Field | Description |
---|---|
title | Your blog post title |
description | Brief description that appears below the title |
author | Your name (or pseudonym) |
date | Publication date in YYYY-MM-DD format |
url | URL to your live blog (should be the HTTP endpoint from Val Town) |
imageUrl | Cover image URL (2:3 aspect ratio recommended) |
tags | Array of tags to categorize your post |
When your blog is viewed through build.moi:
To ensure your blog appears in the Posts tab:
You can customize the template by editing the main.tsx file:
Created by dcm31 on Val Town for use with build.moi.