Updates from my site

This commit is contained in:
2024-02-06 11:03:53 -07:00
parent bfc56fffcf
commit a450b648d5
12 changed files with 280 additions and 159 deletions

View File

@ -12,6 +12,12 @@ import (
"gopkg.in/yaml.v2"
)
type FrontMatter struct {
Name string
Date string
Tags []string
}
func ExtractFrontMatter(file os.DirEntry, dir string) (CardLink, error) {
f, err := os.Open(dir + file.Name())
if err != nil {