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