mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Read/reread individual source content files
next is incremental conversion
This commit is contained in:
@@ -594,7 +594,7 @@ func NewWatcher(port int) error {
|
||||
|
||||
for _, ev := range evs {
|
||||
ext := filepath.Ext(ev.Name)
|
||||
istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___")|| strings.HasSuffix(ext, "jb_bak___")
|
||||
istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___")
|
||||
if istemp {
|
||||
continue
|
||||
}
|
||||
@@ -703,7 +703,7 @@ func NewWatcher(port int) error {
|
||||
fmt.Println(time.Now().Format(layout))
|
||||
//TODO here
|
||||
|
||||
// utils.CheckErr(buildSite(true))
|
||||
// utils.CheckErr(buildSite(true))
|
||||
rebuildSite(dynamicFilesChanged)
|
||||
|
||||
if !BuildWatch && !viper.GetBool("DisableLiveReload") {
|
||||
|
Reference in New Issue
Block a user