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:
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))
|
title = strings.TrimSuffix(filepath.Base(fileName), filepath.Ext(fileName))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// default tags
|
||||||
|
if matter.Tags == nil {
|
||||||
|
matter.Tags = []string{}
|
||||||
|
}
|
||||||
|
|
||||||
// add to content and link index
|
// add to content and link index
|
||||||
i[source] = Content{
|
i[source] = Content{
|
||||||
LastModified: info.ModTime(),
|
LastModified: info.ModTime(),
|
||||||
|
|||||||
Reference in New Issue
Block a user