Back to blog
/
2 min read

Post Metadata Reference

Basic Fields

You can find frontmatter structure in src/content.config.ts

FieldRequiredTypeExample / DefaultDescription
titlestring”My Blog Post”1-100 characters
pubDatetimedate (z.coerce.date())“2025-03-04T16:06:19Z”
1709571979000
”March 4, 2025”
Can accept ISO 8601, timestamps, or natural date formats
descriptionstring”Description of my post”1-320 characters
draftbooleanfalseIf true, post won’t be published
authorstring”truedaniyyel”Defaults to SITE.AUTHOR
modDatetimedate (z.coerce.date())“2025-03-04T16:06:19Z”Optional modification date
imageimage / string”./images/post.png”Min size 1200×630px if provided
demoUrlstring (URL)https://demo.example.comMust be a valid URL
repoUrlstring (URL)https://github.com/user/repoMust be a valid URL
canonicalURLstring (URL)https://blog.example.com/postMust be a valid URL
editPostobjectSee belowPost editing configuration

editPost Object Properties

PropertyRequiredTypeExample / DefaultDescription
disabledbooleanfalseDisable the edit button
urlstringhttps://github.com/user/repo/edit/mainEdit URL
textstring”Edit this post”Edit button text
appendFilePathbooleantrueAppend file path to edit URL

Quick Copy Template

---
title: ''
pubDatetime: 2025-03-04
description: ''
draft: false
author: 'truedaniyyel'
# modDatetime: 2025-03-04
# image: "./images/post.png"
# demoUrl: ""
# repoUrl: ""
# canonicalURL: ""
# editPost:
# url: ""
# text: "Edit this post"
# appendFilePath: true
---