Skip to content

Commit

Permalink
hugolib, output: Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Mar 27, 2017
1 parent f2fbf0b commit af55ec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
// 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,
Expand Down
8 changes: 4 additions & 4 deletions output/layout_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func CreateTemplateNames(d TemplateLookupDescriptor) (TemplateNames, error) {
// in the theme's layouts folder.
// Also note that the <current-path> may be both the project's layout folder and the theme's.
pairsToCheck := [][]string{
[]string{baseTemplatedDir, currBaseFilename},
[]string{baseTemplatedDir, baseFilename},
[]string{"_default", currBaseFilename},
[]string{"_default", baseFilename},
{baseTemplatedDir, currBaseFilename},
{baseTemplatedDir, baseFilename},
{"_default", currBaseFilename},
{"_default", baseFilename},
}

Loop:
Expand Down

0 comments on commit af55ec7

Please sign in to comment.