From c17ad675e8fcdb2db40fc50816b8f016bc14294c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 13 Jun 2017 18:47:17 +0200 Subject: [PATCH] all: Update textual references in Go source to point to gohugoio/hugo --- commands/convert.go | 2 +- commands/hugo.go | 2 +- commands/new.go | 2 +- create/content.go | 2 +- hugolib/node_as_page_test.go | 2 +- hugolib/page.go | 2 +- hugolib/page_time_integration_test.go | 2 +- hugolib/shortcode_test.go | 2 +- hugolib/site.go | 2 +- hugolib/translations.go | 2 +- i18n/i18n_test.go | 2 +- releaser/github.go | 6 +++--- releaser/releasenotes_writer.go | 8 ++++---- tpl/tplimpl/template.go | 4 ++-- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/commands/convert.go b/commands/convert.go index 15273b0c..e40f5fa4 100644 --- a/commands/convert.go +++ b/commands/convert.go @@ -136,7 +136,7 @@ func convertContents(mark rune) error { 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 } diff --git a/commands/hugo.go b/commands/hugo.go index d354b01a..918e7647 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -656,7 +656,7 @@ func (c *commandeer) getDirList() []string { } // 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 } diff --git a/commands/new.go b/commands/new.go index 8ff5f1b8..5b48abaf 100644 --- a/commands/new.go +++ b/commands/new.go @@ -311,7 +311,7 @@ func touchFile(fs afero.Fs, x ...string) { 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" diff --git a/create/content.go b/create/content.go index c51d1f9b..29c99d47 100644 --- a/create/content.go +++ b/create/content.go @@ -160,7 +160,7 @@ func FindArchetype(s *hugolib.Site, kind string) (outpath string) { 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 == "" { diff --git a/hugolib/node_as_page_test.go b/hugolib/node_as_page_test.go index f625bf2d..6cadafc0 100644 --- a/hugolib/node_as_page_test.go +++ b/hugolib/node_as_page_test.go @@ -31,7 +31,7 @@ import ( /* 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 */ diff --git a/hugolib/page.go b/hugolib/page.go index eaa8aa5d..a0ea7183 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -1339,7 +1339,7 @@ func (p *Page) SetSourceContent(content []byte) { } 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 diff --git a/hugolib/page_time_integration_test.go b/hugolib/page_time_integration_test.go index 534933d2..1bf83bdc 100644 --- a/hugolib/page_time_integration_test.go +++ b/hugolib/page_time_integration_test.go @@ -148,7 +148,7 @@ func TestParsingDateInFrontMatter(t *testing.T) { } } -// 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() diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 8f2b7117..42da9e46 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -63,7 +63,7 @@ func CheckShortCodeMatchAndError(t *testing.T, input, expected string, withTempl 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" --- diff --git a/hugolib/site.go b/hugolib/site.go index 47cc74ba..78f02ff8 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -87,7 +87,7 @@ type Site struct { // 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 diff --git a/hugolib/translations.go b/hugolib/translations.go index b71ae978..53272ee1 100644 --- a/hugolib/translations.go +++ b/hugolib/translations.go @@ -49,7 +49,7 @@ func createTranslationKey(p *Page) string { 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) } diff --git a/i18n/i18n_test.go b/i18n/i18n_test.go index 4793541d..496d35ad 100644 --- a/i18n/i18n_test.go +++ b/i18n/i18n_test.go @@ -113,7 +113,7 @@ var i18nTests = []i18nTest{ 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\""), diff --git a/releaser/github.go b/releaser/github.go index 0dbb1bca..c1e7691b 100644 --- a/releaser/github.go +++ b/releaser/github.go @@ -9,9 +9,9 @@ import ( ) 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 { diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go index 2f24a6c0..9e3e6414 100644 --- a/releaser/releasenotes_writer.go +++ b/releaser/releasenotes_writer.go @@ -29,7 +29,7 @@ import ( ) 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 @@ And as always a big thanks to [@digitalcraftsman](https://github.com/digitalcraf 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 writeReleaseNotes(version string, infos gitInfos, to io.Writer) error { } 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 } diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index d92c4e26..13be7ee6 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -139,7 +139,7 @@ func (t *templateHandler) clone(d *deps.Deps) *templateHandler { 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 @@ func (t *htmlTemplates) handleMaster(name, overlayFilename, masterFilename strin // 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