Markdown Front Matter Editor
Open a folder of Markdown posts, fill title, date, tags and draft in a form, fix invalid values across all files at once and download the updated files as a ZIP.
ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ
…
วิธีทำ
- 1Choose the template
Pick Hugo, Jekyll, Astro, Docusaurus or Eleventy at the top.
- 2Open files
Drop Markdown files or press Open a folder.
- 3Review the list
Files are marked valid, with warnings or with errors.
- 4Edit a file
Select it and change fields in Form, or switch to File text.
- 5Batch edit
Choose an action, field and value, then press Apply to files.
- 6Download
Download one file or press Download all for a ZIP.
เกี่ยวกับเครื่องมือนี้
Static site generators read a block of metadata at the top of every Markdown file: the title, the publication date, tags, a draft flag, a slug and whatever else the theme needs. Hugo accepts YAML between three dashes or TOML between three plus signs, Jekyll, Astro, Docusaurus and Eleventy use YAML. The block is easy to break. A date typed as 2024-31-03 fails the build or silently sorts the post into the wrong year, draft written as the word "false" in quotes is a string and therefore true, tags arrive once as Intro and once as intro, and a required description is missing on a third of the posts. This editor reads the front matter of many files at once and shows it as a form. Each generator template knows its required fields and their types, so every file in the list is marked valid, with warnings or with errors, and the exact problem appears under the field. You can edit one file in the form or in raw text, or apply one change to every file.
Templates
Hugo uses title, date, draft, description, tags, categories, slug and weight and is written in TOML by default. Jekyll needs layout, title and date. Astro content collections in the official blog starter use title, description, pubDate, updatedDate and heroImage. Docusaurus documents use id, title, sidebar_label, sidebar_position, description, slug and tags. Eleventy uses title, date, layout, tags and permalink. Fields that are not part of the template still appear in the form below the template fields, so nothing in your files is lost.
Validation
Dates must be YYYY-MM-DD or an ISO 8601 date-time that is a real calendar date. Booleans must be real true or false values, numbers must be numbers, and lists must be lists. Duplicate tags that differ only in letter case, tags with stray spaces, titles longer than 70 characters, descriptions longer than 160 characters, and slugs with capitals or spaces are warnings.
Batch editing
Set, remove or rename a field, or add or remove a list item, in all files or only in files that currently have errors. Fix common problems turns quoted booleans and numbers into real values, splits comma-separated tag strings into lists, trims tags and removes duplicates. Every batch change can be undone.
YAML or TOML
Each file keeps its own format, and you can switch one file between YAML and TOML. Strings, numbers, booleans, dates, lists and one level of tables are converted both ways. Comments inside the front matter are not kept when the block is rewritten, which is a limit worth knowing before you convert a heavily commented file. The tool does not run your site generator, so theme-specific fields are not checked.
ตัวอย่างพร้อมวิธีทำ
A Hugo blog has 48 posts. After opening the content folder, 7 files show errors and 11 show warnings: 5 posts have draft written as "false" in quotes, 2 have the date 2024-31-03 with day and month swapped, and 11 have tags such as Go and go in the same list. Fix common problems repairs the 5 drafts and the 11 tag lists in one step. The 2 dates are corrected in the form to 2024-03-31. A batch Set field action writes author = Maria into all 48 files, and Download all produces a ZIP with the same folder structure, ready to copy over the old content folder.
สรุปสั้น ๆ
- หมวดหมู่: นักพัฒนาและข้อมูล
- ทำงานในเบราว์เซอร์ ไม่ต้องสมัคร ไม่ต้องอัปโหลด
- ข้อมูลที่คุณกรอกอยู่บนอุปกรณ์ของคุณ
- มีภาษาอังกฤษ
- ตรวจสอบเนื้อหาล่าสุด:
- แหล่งข้อมูลทางการ: Hugo front matter documentation, YAML 1.2 and TOML 1.0 specifications
คำถามที่พบบ่อย
Which files can I open?
Markdown files with the extensions .md, .markdown and .mdx, one by one, several at once or a whole folder. Files without front matter open with an empty block that you can fill.
Will my Markdown body change?
No. Only the front matter block is rewritten. The body text below it is kept exactly as it was.
How do I write a list in the batch value box?
Use square brackets, for example [news, release]. For a single tag use Add list item instead, which also avoids duplicates.
Why is draft shown as an error?
Draft must be a real boolean. Written in quotes it is a text value, and many generators treat any text as true, so the post may never be published.
Are YAML comments preserved?
No. When a block is rewritten from the form, comments inside it are dropped. Edit commented files in the File text view, which keeps your typing as it is.
Are my files uploaded?
No. Files are read and written in this browser tab, and your open files are kept in local storage on this device so a reload does not lose them.
