mit einem Klick
create-blog-post
// Use this if the user wants to convert a blog post from Google Docs markdown to the format used in the Music Assistant website.
// Use this if the user wants to convert a blog post from Google Docs markdown to the format used in the Music Assistant website.
| name | create-blog-post |
| description | Use this if the user wants to convert a blog post from Google Docs markdown to the format used in the Music Assistant website. |
Convert a draft markdown file into a properly formatted Music Assistant blog post.
Place your draft blog post markdown file in the project root create-blog-post/ directory (e.g., /workspaces/music-assistant.io/create-blog-post/), then run:
/create-blog-post
Automates conversion of a draft markdown file with metadata into a production-ready Music Assistant blog post:
### **– Summary break / Read more –** to <!--more--><a> tags with target="_blank"src/content/docs/blog/ with Astro/Starlight front mattercreate-blog-post/ Directoryart.webp - Hero/OG image (required)image2.png, image3.png, etc. - Additional images (optional, will be converted to WebP)# Metadata
**Blog title:** Your Blog Title
**Author:** Author Name
**Publish date:** DD-MM-YYYY
**Tags:** release, announcement
**Social/OpenGraph title** (Usually same as the blog title, visibility mostly limited to 50-60 characters)**:**
A short title.
**Social/OpenGraph description** (120-158 characters):
Influences SEO ranking. Include the main keyword, describe what readers will find, and give them a clear reason to click.
# Blog notes/preparations
☝️ Any lines with the pointer emoji can be removed during processing
# Blog content
![][image1]
Your intro paragraph here...
### **– Summary break / Read more –**
Rest of content...
Notes:
![][image1] reference should appear at the start of the "# Blog content" section. This will be replaced with the art.webp hero image.### **– Summary break / Read more –** marker will be converted to <!--more-->Creates a production-ready blog post at:
src/content/docs/blog/YYYY/MM/DD/slug.md - The formatted blog postpublic/images/blog/YYYY/MM/DD/slug/art.webp - OG/hero image (moved from create-blog-post/)public/images/blog/YYYY/MM/DD/slug/image2.webp, image3.webp, etc. - Additional images (converted from PNGs)### **– Summary break / Read more –** marker to <!--more-->Hero image (art.webp):
public/images/blog/YYYY/MM/DD/slug/art.webp![][image1] reference in "# Blog content" section with: <img src="/images/blog/YYYY/MM/DD/slug/art.webp" alt="Blog Title">style attribute) on image tags<p> tag)Additional images (if any):
image2.png, image3.png, etc. in create-blog-post/ directorycwebp -resize 900 0 -q 85 input.png -o output.webppublic/images/blog/YYYY/MM/DD/slug/External links (different domains/subdomains):
<a href="URL" target="_blank" rel="noopener">text</a>Internal links (www.music-assistant.io and music-assistant.io only):
[text](/path) (strip the domain, always use relative paths)## **Title** → ## Title)#), demote all headings one level (content should start at H2)###) subheadings that appear directly under H2 section headings to bold text instead (e.g., ### Subtitle → **Subtitle**)src/content/docs/blog/YYYY/MM/DD/slug.mdhead (OG image meta tags)titledescriptioncover (image path and alt)excerptdate (ISO 8601 format: YYYY-MM-DDT00:00:00.000Z)authors (YAML list — must match a key in src/authors.mjs)tags (YAML list)<!--more--> tag after first paragraph---
head:
- tag: meta
attrs:
property: og:image
content: /images/blog/YYYY/MM/DD/slug/art.webp
- tag: meta
attrs:
property: og:image:alt
content: "Social/OpenGraph title"
title: "Blog Title"
description: "Social/OpenGraph description"
cover:
image: /public/images/blog/YYYY/MM/DD/slug/art.webp
alt: "Social/OpenGraph title"
excerpt: "First paragraph of blog content"
date: YYYY-MM-DDT00:00:00.000Z
authors:
- authorname
tags:
- release
- announcement
---
create-blog-post/:
draft-release-update.md - Your draft fileart.webp - OG/hero imageimage2.png, image3.png - Additional images (if any)/create-blog-postThis would create:
src/content/docs/blog/2026/01/13/release-update.mdpublic/images/blog/2026/01/13/release-update/art.webppublic/images/blog/2026/01/13/release-update/image2.webp, image3.webp (if additional images exist)Image references:
![][image1] (at start of "# Blog content" section) → Output: art.webp hero image![][image2] → Look for image2.png, convert to image2.webp![][image3] → Look for image3.png, convert to image3.webpRequirements:
cwebp tool required for PNG→WebP conversion (install: sudo apt-get install -y webp)Content processing:
### **– Summary break / Read more –** to <!--more-->Output format:
slug.mdsrc/content/docs/blog/YYYY/MM/DD/slug.mdpublic/images/blog/YYYY/MM/DD/slug/Link handling:
www.music-assistant.io and music-assistant.io links must be converted to relative paths (e.g., https://www.music-assistant.io/foo → /foo)<a> tags with target="_blank" rel="noopener"