mirror of
https://github.com/jackyzha0/hugo-obsidian.git
synced 2024-06-14 11:42:35 +03:00
default tags
This commit is contained in:
parent
1661db2ac3
commit
a7bc6ab3db
5
walk.go
5
walk.go
@ -69,6 +69,11 @@ func walk(root, ext string, index bool, ignorePaths map[string]struct{}) (res []
|
||||
title = strings.TrimSuffix(filepath.Base(fileName), filepath.Ext(fileName))
|
||||
}
|
||||
|
||||
// default tags
|
||||
if matter.Tags == nil {
|
||||
matter.Tags = []string{}
|
||||
}
|
||||
|
||||
// add to content and link index
|
||||
i[source] = Content{
|
||||
LastModified: info.ModTime(),
|
||||
|
Loading…
Reference in New Issue
Block a user