mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
all: Fix minor typos
This commit is contained in:
@@ -956,7 +956,7 @@ func (s *Site) translateFileEvents(events []fsnotify.Event) []fsnotify.Event {
|
||||
eventMap := make(map[string][]fsnotify.Event)
|
||||
|
||||
// We often get a Remove etc. followed by a Create, a Create followed by a Write.
|
||||
// Remove the superflous events to mage the update logic simpler.
|
||||
// Remove the superfluous events to mage the update logic simpler.
|
||||
for _, ev := range events {
|
||||
eventMap[ev.Name] = append(eventMap[ev.Name], ev)
|
||||
}
|
||||
@@ -999,7 +999,7 @@ var (
|
||||
)
|
||||
|
||||
// reBuild partially rebuilds a site given the filesystem events.
|
||||
// It returns whetever the content source was changed.
|
||||
// It returns whatever the content source was changed.
|
||||
// TODO(bep) clean up/rewrite this method.
|
||||
func (s *Site) processPartial(config *BuildCfg, init func(config *BuildCfg) error, events []fsnotify.Event) error {
|
||||
events = s.filterFileEvents(events)
|
||||
@@ -1513,7 +1513,7 @@ func (s *Site) assembleMenus() {
|
||||
}
|
||||
}
|
||||
|
||||
// get any lanaguagecode to prefix the target file path with.
|
||||
// get any language code to prefix the target file path with.
|
||||
func (s *Site) getLanguageTargetPathLang(alwaysInSubDir bool) string {
|
||||
if s.h.IsMultihost() {
|
||||
return s.Language().Lang
|
||||
|
Reference in New Issue
Block a user