ref: c17ad675e8fcdb2db40fc50816b8f016bc14294c
parent: d8717cd4c74e80ea8e20adead9321412a2d76022
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Jun 13 14:47:17 EDT 2017
all: Update textual references in Go source to point to gohugoio/hugo
--- a/commands/convert.go
+++ b/commands/convert.go
@@ -136,7 +136,7 @@
page.SetDir(filepath.Join(contentDir, file.Dir()))
page.SetSourceContent(psr.Content())
if err = page.SetSourceMetaData(metadata, mark); err != nil {
- site.Log.ERROR.Printf("Failed to set source metadata for file %q: %s. For more info see For more info see https://github.com/spf13/hugo/issues/2458", page.FullFilePath(), err)
+ site.Log.ERROR.Printf("Failed to set source metadata for file %q: %s. For more info see For more info see https://github.com/gohugoio/hugo/issues/2458", page.FullFilePath(), err)
continue
}
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -656,7 +656,7 @@
}
// Skip .git directories.
- // Related to https://github.com/spf13/hugo/issues/3468.
+ // Related to https://github.com/gohugoio/hugo/issues/3468.
if fi.Name() == ".git" {
return nil
}
--- a/commands/new.go
+++ b/commands/new.go
@@ -311,7 +311,7 @@
func createThemeMD(fs *hugofs.Fs, inpath string) (err error) {
by := []byte(`# theme.toml template for a Hugo theme
-# See https://github.com/spf13/hugoThemes#themetoml for an example
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `"
license = "MIT"
--- a/create/content.go
+++ b/create/content.go
@@ -160,7 +160,7 @@
for _, x := range search {
// If the new content isn't in a subdirectory, kind == "".
// Therefore it should be excluded otherwise `is a directory`
- // error will occur. github.com/spf13/hugo/issues/411
+ // error will occur. github.com/gohugoio/hugo/issues/411
var pathsToCheck []string
if kind == "" {
--- a/hugolib/node_as_page_test.go
+++ b/hugolib/node_as_page_test.go
@@ -31,7 +31,7 @@
/*
This file will test the "making everything a page" transition.
- See https://github.com/spf13/hugo/issues/2297
+ See https://github.com/gohugoio/hugo/issues/2297
*/
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -1339,7 +1339,7 @@
}
func (p *Page) SetSourceMetaData(in interface{}, mark rune) (err error) {
- // See https://github.com/spf13/hugo/issues/2458
+ // See https://github.com/gohugoio/hugo/issues/2458
defer func() {
if r := recover(); r != nil {
var ok bool
--- a/hugolib/page_time_integration_test.go
+++ b/hugolib/page_time_integration_test.go
@@ -148,7 +148,7 @@
}
}
-// Temp test https://github.com/spf13/hugo/issues/3059
+// Temp test https://github.com/gohugoio/hugo/issues/3059
func TestParsingDateParallel(t *testing.T) {
t.Parallel()
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -63,7 +63,7 @@
cfg, fs := newTestCfg()
- // Need some front matter, see https://github.com/spf13/hugo/issues/2337
+ // Need some front matter, see https://github.com/gohugoio/hugo/issues/2337
contentFile := `---
title: "Title"
---
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -87,7 +87,7 @@
// to get the singular form from that value.
taxonomiesPluralSingular map[string]string
- // This is temporary, see https://github.com/spf13/hugo/issues/2835
+ // This is temporary, see https://github.com/gohugoio/hugo/issues/2835
// Maps "actors-gerard-depardieu" to "Gérard Depardieu" when preserveTaxonomyNames
// is set.
taxonomiesOrigKey map[string]string
--- a/hugolib/translations.go
+++ b/hugolib/translations.go
@@ -49,7 +49,7 @@
base := p.TranslationBaseName()
if p.IsNode() {
- // TODO(bep) see https://github.com/spf13/hugo/issues/2699
+ // TODO(bep) see https://github.com/gohugoio/hugo/issues/2699
// Must prepend the section and kind to the key to make it unique
base = fmt.Sprintf("%s/%s/%s", p.Kind, p.sections, base)
}
--- a/i18n/i18n_test.go
+++ b/i18n/i18n_test.go
@@ -113,7 +113,7 @@
expectedFlag: "¡Hola, 50 gente!",
},
// Same id and translation in current language
- // https://github.com/spf13/hugo/issues/2607
+ // https://github.com/gohugoio/hugo/issues/2607
{
data: map[string][]byte{
"es.toml": []byte("[hello]\nother = \"hello\""),
--- a/releaser/github.go
+++ b/releaser/github.go
@@ -9,9 +9,9 @@
)
var (
- gitHubCommitsApi = "https://api.github.com/repos/spf13/hugo/commits/%s"
- gitHubRepoApi = "https://api.github.com/repos/spf13/hugo"
- gitHubContributorsApi = "https://api.github.com/repos/spf13/hugo/contributors"
+ gitHubCommitsApi = "https://api.github.com/repos/gohugoio/hugo/commits/%s"
+ gitHubRepoApi = "https://api.github.com/repos/gohugoio/hugo"
+ gitHubContributorsApi = "https://api.github.com/repos/gohugoio/hugo/contributors"
)
type gitHubCommit struct {
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -29,7 +29,7 @@
)
const (
- issueLinkTemplate = "[#%d](https://github.com/spf13/hugo/issues/%d)"
+ issueLinkTemplate = "[#%d](https://github.com/gohugoio/hugo/issues/%d)"
linkTemplate = "[%s](%s)"
releaseNotesMarkdownTemplate = `
{{- $patchRelease := isPatch . -}}
@@ -56,8 +56,8 @@
Hugo now has:
{{ with .Repo -}}
-* {{ .Stars }}+ [stars](https://github.com/spf13/hugo/stargazers)
-* {{ len .Contributors }}+ [contributors](https://github.com/spf13/hugo/graphs/contributors)
+* {{ .Stars }}+ [stars](https://github.com/gohugoio/hugo/stargazers)
+* {{ len .Contributors }}+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
{{- end -}}
{{ with .ThemeCount }}
* 156+ [themes](http://themes.gohugo.io/)
@@ -160,7 +160,7 @@
}
func fetchThemeCount() (int, error) {
- resp, err := http.Get("https://github.com/spf13/hugoThemes/blob/master/.gitmodules")
+ resp, err := http.Get("https://github.com/gohugoio/hugoThemes/blob/master/.gitmodules")
if err != nil {
return 0, err
}
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -139,7 +139,7 @@
vc := template.Must(v.Clone())
// The extra lookup is a workaround, see
// * https://github.com/golang/go/issues/16101
- // * https://github.com/spf13/hugo/issues/2549
+ // * https://github.com/gohugoio/hugo/issues/2549
vc = vc.Lookup(vc.Name())
vc.Funcs(c.html.funcster.funcMap)
c.html.overlays[k] = vc
@@ -555,7 +555,7 @@
// The extra lookup is a workaround, see
// * https://github.com/golang/go/issues/16101
- // * https://github.com/spf13/hugo/issues/2549
+ // * https://github.com/gohugoio/hugo/issues/2549
overlayTpl = overlayTpl.Lookup(overlayTpl.Name())
if err := applyTemplateTransformersToHMLTTemplate(overlayTpl); err != nil {
return err