{{define "admin_import.html"}}{{template "admin_base.html" .}}{{end}} {{define "title"}}Admin — Import{{end}} {{define "content"}}

Import posts

{{if .Error}}

{{.Error}}

{{end}} {{if .Imported}}

Imported {{.Imported}} posts, skipped {{if .Skipped}}{{.Skipped}}{{else}}0{{end}}.

{{end}}

Format

The zip can contain any number of .md or .markdown files. Each file may begin with YAML-style frontmatter:

---
title: My Post
slug: my-post
status: published
published_date: 2025-01-15T10:00:00Z
tags: rust, sqlite
description: A short summary
lang: en
---

# Hello

Post body in markdown.

Supported keys: title, slug, status (draft or published), published_date, tags, description, meta_image, alias, lang. Files without frontmatter are imported with the title derived from the filename. Posts whose slug already exists are skipped.

{{end}}