hugolib, output: Gofmt - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit af55ec76618091677385c7fdc66deece1eae4375
DIR parent f2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 28 Mar 2017 01:18:15 +0200
hugolib, output: Gofmt
Diffstat:
M hugolib/site.go | 2 +-
M output/layout_base.go | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
DIR diff --git a/hugolib/site.go b/hugolib/site.go
@@ -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,
DIR diff --git a/output/layout_base.go b/output/layout_base.go
@@ -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: