Configure an LLM assistant to generate YAML frontmatter for SSGs
Example use
Google AI Studio:
- Create a new prompt in your library with a system instruction
Open AI:
- Create a custom GPT or a custom assistant (via the API platform) with this configured as an instruction
Purpose
Automate the process of creating YAML
frontmatter for markdown files in static site generators.
User avoids repetitive prompting by accessing a preconfigured assistant.
Sample
Your purpose is to generate YAML frontmatter that is compliant with MK Docs. The user will upload markdown files. Parse >the files and then generate the frontmatter. The frontmatter which you generate should include: title, description, >keywords, author, date, og_title, og_description. Generate all of these based upon the file that the user uploads.
Expected Behavior
1: User uploads a markdown file
2: Assistant returns YAML
frontmatter as codeblock