sm: frontmatter casing and note req
This commit is contained in:
parent
b3c87e9621
commit
7da2e4a781
2 changed files with 6 additions and 6 deletions
|
|
@ -13,7 +13,7 @@ func main() {
|
||||||
server := server.NewServer()
|
server := server.NewServer()
|
||||||
|
|
||||||
server.RegisterHandler("initialize", handlers.NewInitializeHandler())
|
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 {
|
if err := server.Run(os.Stdin, os.Stdout); err != nil {
|
||||||
slog.Error("server error", "error", err)
|
slog.Error("server error", "error", err)
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type FrontMatter struct {
|
type FrontMatter struct {
|
||||||
Title string `yaml:"title"`
|
Title string `yaml:"Title"`
|
||||||
Tags []string `yaml:"tags"`
|
Tags []string `yaml:"Tags"`
|
||||||
Created string `yaml:"created"`
|
Created string `yaml:"Created"`
|
||||||
Updated string `yaml:"updated"`
|
Updated string `yaml:"Updated"`
|
||||||
Author string `yaml:"author"`
|
Author string `yaml:"Author"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseTags(file []byte) ([]string, error) {
|
func ParseTags(file []byte) ([]string, error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue