Compare commits
2 Commits
f1c56bdf8b
...
main
Author | SHA1 | Date | |
---|---|---|---|
ecd53a6741 | |||
4786a21a56 |
2
hugo.go
2
hugo.go
@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"slices"
|
||||
@ -89,7 +88,6 @@ func getPostInfo(post string) (postInfo, error) {
|
||||
case "title":
|
||||
info.Title = splitLine[1]
|
||||
case "date":
|
||||
fmt.Println(splitLine[1])
|
||||
t, err := time.Parse(time.DateOnly, splitLine[1][1:len(splitLine[1])-1])
|
||||
if err != nil {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user