all: Update import paths to gohugoio/hugo

This commit is contained in:
Bjørn Erik Pedersen 2017-06-13 18:42:45 +02:00
parent 2d08a296a2
commit d8717cd4c7
169 changed files with 355 additions and 355 deletions

View file

@ -1,6 +1,6 @@
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html # A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
PACKAGE = github.com/spf13/hugo PACKAGE = github.com/gohugoio/hugo
COMMIT_HASH = `git rev-parse --short HEAD 2>/dev/null` COMMIT_HASH = `git rev-parse --short HEAD 2>/dev/null`
BUILD_DATE = `date +%FT%T%z` BUILD_DATE = `date +%FT%T%z`
LDFLAGS = -ldflags "-X ${PACKAGE}/hugolib.CommitHash=${COMMIT_HASH} -X ${PACKAGE}/hugolib.BuildDate=${BUILD_DATE}" LDFLAGS = -ldflags "-X ${PACKAGE}/hugolib.CommitHash=${COMMIT_HASH} -X ${PACKAGE}/hugolib.BuildDate=${BUILD_DATE}"

View file

@ -14,9 +14,9 @@
package commands package commands
import ( import (
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
) )
type commandeer struct { type commandeer struct {

View file

@ -21,8 +21,8 @@ import (
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
) )
var outputDir string var outputDir string

View file

@ -22,8 +22,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/cobra/doc" "github.com/spf13/cobra/doc"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -20,7 +20,7 @@ import (
"path/filepath" "path/filepath"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
) )
type genDocsHelper struct { type genDocsHelper struct {

View file

@ -19,8 +19,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/cobra/doc" "github.com/spf13/cobra/doc"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"log" "log"
"net/http" "net/http"
@ -30,9 +30,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
"regexp" "regexp"
@ -41,12 +41,12 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/fsync" "github.com/spf13/fsync"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/hugo/livereload" "github.com/gohugoio/hugo/livereload"
"github.com/spf13/hugo/utils" "github.com/gohugoio/hugo/utils"
"github.com/spf13/hugo/watcher" "github.com/gohugoio/hugo/watcher"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/nitro" "github.com/spf13/nitro"
"github.com/spf13/viper" "github.com/spf13/viper"

View file

@ -28,10 +28,10 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -17,7 +17,7 @@ import (
"path/filepath" "path/filepath"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -24,11 +24,11 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/create" "github.com/gohugoio/hugo/create"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -17,7 +17,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -17,7 +17,7 @@ package commands
import ( import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/releaser" "github.com/gohugoio/hugo/releaser"
) )
func init() { func init() {

View file

@ -26,8 +26,8 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -20,7 +20,7 @@ import (
"time" "time"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
) )
var undraftCmd = &cobra.Command{ var undraftCmd = &cobra.Command{

View file

@ -21,7 +21,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
) )
var ( var (

View file

@ -22,8 +22,8 @@ import (
"github.com/kardianos/osext" "github.com/kardianos/osext"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -24,9 +24,9 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -19,17 +19,17 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/hugolib" "github.com/gohugoio/hugo/hugolib"
"fmt" "fmt"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/create" "github.com/gohugoio/hugo/create"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

10
deps/deps.go vendored
View file

@ -5,11 +5,11 @@ import (
"log" "log"
"os" "os"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -29,8 +29,8 @@ import (
"github.com/miekg/mmark" "github.com/miekg/mmark"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/russross/blackfriday" "github.com/russross/blackfriday"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"strings" "strings"

View file

@ -19,7 +19,7 @@ import (
"github.com/miekg/mmark" "github.com/miekg/mmark"
"github.com/russross/blackfriday" "github.com/russross/blackfriday"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -19,7 +19,7 @@ import (
"testing" "testing"
"github.com/kyokomi/emoji" "github.com/kyokomi/emoji"
"github.com/spf13/hugo/bufferpool" "github.com/gohugoio/hugo/bufferpool"
) )
func TestEmojiCustom(t *testing.T) { func TestEmojiCustom(t *testing.T) {

View file

@ -27,7 +27,7 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/spf13/cast" "github.com/spf13/cast"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/pflag" "github.com/spf13/pflag"
) )

View file

@ -19,7 +19,7 @@ import (
"sync" "sync"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
) )
// These are the settings that should only be looked up in the global Viper // These are the settings that should only be looked up in the global Viper

View file

@ -30,7 +30,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -16,8 +16,8 @@ package helpers
import ( import (
"fmt" "fmt"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
) )
// PathSpec holds methods that decides how paths in URLs and files in Hugo should look like. // PathSpec holds methods that decides how paths in URLs and files in Hugo should look like.

View file

@ -16,7 +16,7 @@ package helpers
import ( import (
"testing" "testing"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -24,8 +24,8 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -3,7 +3,7 @@ package helpers
import ( import (
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
) )
func newTestPathSpec(fs *hugofs.Fs, v *viper.Viper) *PathSpec { func newTestPathSpec(fs *hugofs.Fs, v *viper.Viper) *PathSpec {

View file

@ -18,7 +18,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -16,7 +16,7 @@ package hugofs
import ( import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
) )
// Os points to an Os Afero file system. // Os points to an Os Afero file system.

View file

@ -18,7 +18,7 @@ import (
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
func Test404(t *testing.T) { func Test404(t *testing.T) {

View file

@ -22,11 +22,11 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
const ( const (

View file

@ -18,7 +18,7 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -20,8 +20,8 @@ import (
"testing" "testing"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -17,7 +17,7 @@ import (
"fmt" "fmt"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -23,11 +23,11 @@ import (
"log" "log"
"os" "os"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -19,10 +19,10 @@ import (
"fmt" "fmt"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -22,10 +22,10 @@ import (
"path/filepath" "path/filepath"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -19,7 +19,7 @@ import (
"strings" "strings"
"github.com/bep/gitmap" "github.com/bep/gitmap"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
func (h *HugoSites) assembleGitInfo() { func (h *HugoSites) assembleGitInfo() {

View file

@ -14,7 +14,7 @@
package hugolib package hugolib
import ( import (
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
type Handler interface { type Handler interface {

View file

@ -17,7 +17,7 @@ import (
"bytes" "bytes"
"github.com/dchest/cssmin" "github.com/dchest/cssmin"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
func init() { func init() {

View file

@ -18,7 +18,7 @@ import (
"fmt" "fmt"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
var handlers []Handler var handlers []Handler

View file

@ -16,8 +16,8 @@ package hugolib
import ( import (
"fmt" "fmt"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
func init() { func init() {

View file

@ -17,8 +17,8 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
func TestDefaultHandler(t *testing.T) { func TestDefaultHandler(t *testing.T) {

View file

@ -17,7 +17,7 @@ import (
"fmt" "fmt"
"html/template" "html/template"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
var ( var (

View file

@ -19,12 +19,12 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/i18n" "github.com/gohugoio/hugo/i18n"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/spf13/hugo/tpl/tplimpl" "github.com/gohugoio/hugo/tpl/tplimpl"
) )
// HugoSites represents the sites to build. Each site represents a language. // HugoSites represents the sites to build. Each site represents a language.

View file

@ -19,7 +19,7 @@ import (
"errors" "errors"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
// Build builds all sites. If filesystem events are provided, // Build builds all sites. If filesystem events are provided,

View file

@ -14,10 +14,10 @@ import (
"github.com/fortytw2/leaktest" "github.com/fortytw2/leaktest"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -21,12 +21,12 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"path/filepath" "path/filepath"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -22,8 +22,8 @@ import (
"fmt" "fmt"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
type Multilingual struct { type Multilingual struct {

View file

@ -23,8 +23,8 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -22,9 +22,9 @@ import (
"github.com/bep/gitmap" "github.com/bep/gitmap"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
"html/template" "html/template"
"io" "io"
@ -37,8 +37,8 @@ import (
"unicode/utf8" "unicode/utf8"
"github.com/spf13/cast" "github.com/spf13/cast"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
var ( var (

View file

@ -17,7 +17,7 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"github.com/spf13/hugo/cache" "github.com/gohugoio/hugo/cache"
) )
// PageCollections contains the page collections for a site. // PageCollections contains the page collections for a site.

View file

@ -21,7 +21,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -19,10 +19,10 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
) )
// PageOutput represents one of potentially many output formats of a given // PageOutput represents one of potentially many output formats of a given

View file

@ -20,8 +20,8 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
) )
// targetPathDescriptor describes how a file path for a given resource // targetPathDescriptor describes how a file path for a given resource

View file

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
) )
func TestPageTargetPath(t *testing.T) { func TestPageTargetPath(t *testing.T) {

View file

@ -21,7 +21,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
func TestPermalink(t *testing.T) { func TestPermalink(t *testing.T) {

View file

@ -26,8 +26,8 @@ import (
"time" "time"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -21,7 +21,7 @@ import (
"reflect" "reflect"
"strings" "strings"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/cast" "github.com/spf13/cast"
) )

View file

@ -20,8 +20,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -17,7 +17,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
const robotTxtTemplate = `User-agent: Googlebot const robotTxtTemplate = `User-agent: Googlebot

View file

@ -18,7 +18,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
func TestRSSOutput(t *testing.T) { func TestRSSOutput(t *testing.T) {

View file

@ -18,7 +18,7 @@ import (
"sort" "sort"
"sync" "sync"
"github.com/spf13/hugo/tpl/math" "github.com/gohugoio/hugo/tpl/math"
) )
// Scratch is a writable context used for stateful operations in Page/Node rendering. // Scratch is a writable context used for stateful operations in Page/Node rendering.

View file

@ -24,13 +24,13 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
) )
// ShortcodeWithPage is the "." context in a shortcode template. // ShortcodeWithPage is the "." context in a shortcode template.

View file

@ -26,14 +26,14 @@ import (
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -28,9 +28,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
"github.com/bep/inflect" "github.com/bep/inflect"
@ -39,14 +39,14 @@ import (
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/cast" "github.com/spf13/cast"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/hugo/parser" "github.com/gohugoio/hugo/parser"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/spf13/hugo/transform" "github.com/gohugoio/hugo/transform"
"github.com/spf13/nitro" "github.com/spf13/nitro"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -19,7 +19,7 @@ import (
"path/filepath" "path/filepath"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
// Issue #1123 // Issue #1123

View file

@ -19,9 +19,9 @@ import (
"strings" "strings"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
) )
func createSiteOutputFormats(allFormats output.Formats, cfg config.Provider) (map[string]output.Formats, error) { func createSiteOutputFormats(allFormats output.Formats, cfg config.Provider) (map[string]output.Formats, error) {

View file

@ -24,8 +24,8 @@ import (
"fmt" "fmt"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -18,11 +18,11 @@ import (
"path" "path"
"sync" "sync"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/output" "github.com/gohugoio/hugo/output"
bp "github.com/spf13/hugo/bufferpool" bp "github.com/gohugoio/hugo/bufferpool"
) )
// renderPages renders pages each corresponding to a markdown file. // renderPages renders pages each corresponding to a markdown file.

View file

@ -20,7 +20,7 @@ import (
"strings" "strings"
radix "github.com/hashicorp/go-immutable-radix" radix "github.com/hashicorp/go-immutable-radix"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
// Deprecated: Use .Site.Home.Sections. // Deprecated: Use .Site.Home.Sections.

View file

@ -19,7 +19,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -22,11 +22,11 @@ import (
"github.com/bep/inflect" "github.com/bep/inflect"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -19,8 +19,8 @@ import (
"html/template" "html/template"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -20,8 +20,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
) )
const sitemapTemplate = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> const sitemapTemplate = `<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

View file

@ -22,7 +22,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
func TestByCountOrderOfTaxonomies(t *testing.T) { func TestByCountOrderOfTaxonomies(t *testing.T) {

View file

@ -20,7 +20,7 @@ import (
"strings" "strings"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
) )
func TestAllTemplateEngines(t *testing.T) { func TestAllTemplateEngines(t *testing.T) {

View file

@ -18,8 +18,8 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -10,12 +10,12 @@ import (
"strings" "strings"
"github.com/spf13/afero" "github.com/spf13/afero"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
"github.com/spf13/hugo/tpl" "github.com/gohugoio/hugo/tpl"
"github.com/spf13/viper" "github.com/spf13/viper"
"io/ioutil" "io/ioutil"
@ -23,7 +23,7 @@ import (
"log" "log"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -15,8 +15,8 @@ package i18n
import ( import (
"github.com/nicksnyder/go-i18n/i18n/bundle" "github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -22,7 +22,7 @@ import (
"log" "log"
"github.com/nicksnyder/go-i18n/i18n/bundle" "github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -17,8 +17,8 @@ import (
"fmt" "fmt"
"github.com/nicksnyder/go-i18n/i18n/bundle" "github.com/nicksnyder/go-i18n/i18n/bundle"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/source" "github.com/gohugoio/hugo/source"
) )
// TranslationProvider provides translation handling, i.e. loading // TranslationProvider provides translation handling, i.e. loading

View file

@ -18,7 +18,7 @@ import (
"os" "os"
"github.com/spf13/hugo/commands" "github.com/gohugoio/hugo/commands"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
) )

View file

@ -1,7 +1,7 @@
package media package media
import ( import (
"github.com/spf13/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
) )
// This is is just some helpers used to create some JSON used in the Hugo docs. // This is is just some helpers used to create some JSON used in the Hugo docs.

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/spf13/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
) )
// This is is just some helpers used to create some JSON used in the Hugo docs. // This is is just some helpers used to create some JSON used in the Hugo docs.

View file

@ -18,7 +18,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
const baseFileBase = "baseof" const baseFileBase = "baseof"

View file

@ -16,7 +16,7 @@ package output
import ( import (
"testing" "testing"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -23,7 +23,7 @@ import (
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
) )
// Format represents an output representation, usually to a file on disk. // Format represents an output representation, usually to a file on disk.

View file

@ -17,7 +17,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/spf13/hugo/media" "github.com/gohugoio/hugo/media"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -25,7 +25,7 @@ import (
"path/filepath" "path/filepath"
"regexp" "regexp"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
const commitPrefix = "releaser:" const commitPrefix = "releaser:"

View file

@ -19,7 +19,7 @@ package releaser
import ( import (
"testing" "testing"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -16,7 +16,7 @@ package source
import ( import (
"testing" "testing"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View file

@ -18,10 +18,10 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/hugo/config" "github.com/gohugoio/hugo/config"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
) )
type SourceSpec struct { type SourceSpec struct {

View file

@ -18,7 +18,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/spf13/hugo/hugofs" "github.com/gohugoio/hugo/hugofs"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"

View file

@ -22,7 +22,7 @@ import (
"strings" "strings"
"github.com/spf13/cast" "github.com/spf13/cast"
"github.com/spf13/hugo/helpers" "github.com/gohugoio/hugo/helpers"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"golang.org/x/text/unicode/norm" "golang.org/x/text/unicode/norm"
) )

View file

@ -14,9 +14,9 @@
package cast package cast
import ( import (
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
"github.com/spf13/hugo/tpl/internal" "github.com/gohugoio/hugo/tpl/internal"
) )
// This file provides documentation support and is randomly put into this package. // This file provides documentation support and is randomly put into this package.

View file

@ -14,8 +14,8 @@
package cast package cast
import ( import (
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/tpl/internal" "github.com/gohugoio/hugo/tpl/internal"
) )
const name = "cast" const name = "cast"

View file

@ -16,8 +16,8 @@ package cast
import ( import (
"testing" "testing"
"github.com/spf13/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/spf13/hugo/tpl/internal" "github.com/gohugoio/hugo/tpl/internal"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

Some files were not shown because too many files have changed in this diff Show more