mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
hugolib, output: Gofmt
This commit is contained in:
parent
f2fbf0b2ea
commit
af55ec7661
2 changed files with 5 additions and 5 deletions
|
@ -718,7 +718,7 @@ func (s *Site) reProcess(events []fsnotify.Event) (whatChanged, error) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for shortcode, _ := range shortcodesChanged {
|
for shortcode := range shortcodesChanged {
|
||||||
// There are certain scenarios that, when a shortcode changes,
|
// There are certain scenarios that, when a shortcode changes,
|
||||||
// it isn't sufficient to just rerender the already parsed shortcode.
|
// it isn't sufficient to just rerender the already parsed shortcode.
|
||||||
// One example is if the user adds a new shortcode to the content file first,
|
// One example is if the user adds a new shortcode to the content file first,
|
||||||
|
|
|
@ -137,10 +137,10 @@ func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) {
|
||||||
// in the theme's layouts folder.
|
// in the theme's layouts folder.
|
||||||
// Also note that the <current-path> may be both the project's layout folder and the theme's.
|
// Also note that the <current-path> may be both the project's layout folder and the theme's.
|
||||||
pairsToCheck := [][]string{
|
pairsToCheck := [][]string{
|
||||||
[]string{baseTemplatedDir, currBaseFilename},
|
{baseTemplatedDir, currBaseFilename},
|
||||||
[]string{baseTemplatedDir, baseFilename},
|
{baseTemplatedDir, baseFilename},
|
||||||
[]string{"_default", currBaseFilename},
|
{"_default", currBaseFilename},
|
||||||
[]string{"_default", baseFilename},
|
{"_default", baseFilename},
|
||||||
}
|
}
|
||||||
|
|
||||||
Loop:
|
Loop:
|
||||||
|
|
Loading…
Reference in a new issue