sm: frontmatter casing and note req

This commit is contained in:
Kristian JBF 2026-04-04 11:44:12 +02:00
parent b3c87e9621
commit 7da2e4a781
2 changed files with 6 additions and 6 deletions

View file

@ -13,7 +13,7 @@ func main() {
server := server.NewServer()
server.RegisterHandler("initialize", handlers.NewInitializeHandler())
server.RegisterHandler("createNote", handlers.NewCreateNoteHandler())
server.RegisterHandler("create_note", handlers.NewCreateNoteHandler())
if err := server.Run(os.Stdin, os.Stdout); err != nil {
slog.Error("server error", "error", err)

View file

@ -7,11 +7,11 @@ import (
)
type FrontMatter struct {
Title string `yaml:"title"`
Tags []string `yaml:"tags"`
Created string `yaml:"created"`
Updated string `yaml:"updated"`
Author string `yaml:"author"`
Title string `yaml:"Title"`
Tags []string `yaml:"Tags"`
Created string `yaml:"Created"`
Updated string `yaml:"Updated"`
Author string `yaml:"Author"`
}
func ParseTags(file []byte) ([]string, error) {