all: Update textual references in Go source to point to gohugoio/hugo

This commit is contained in:
Bjørn Erik Pedersen 2017-06-13 18:47:17 +02:00
parent d8717cd4c7
commit c17ad675e8
14 changed files with 20 additions and 20 deletions

View file

@ -136,7 +136,7 @@ func convertContents(mark rune) error {
page.SetDir(filepath.Join(contentDir, file.Dir())) page.SetDir(filepath.Join(contentDir, file.Dir()))
page.SetSourceContent(psr.Content()) page.SetSourceContent(psr.Content())
if err = page.SetSourceMetaData(metadata, mark); err != nil { 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 continue
} }

View file

@ -656,7 +656,7 @@ func (c *commandeer) getDirList() []string {
} }
// Skip .git directories. // 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" { if fi.Name() == ".git" {
return nil return nil
} }

View file

@ -311,7 +311,7 @@ func touchFile(fs afero.Fs, x ...string) {
func createThemeMD(fs *hugofs.Fs, inpath string) (err error) { func createThemeMD(fs *hugofs.Fs, inpath string) (err error) {
by := []byte(`# theme.toml template for a Hugo theme 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))) + `" name = "` + strings.Title(helpers.MakeTitle(filepath.Base(inpath))) + `"
license = "MIT" license = "MIT"

View file

@ -160,7 +160,7 @@ func FindArchetype(s *hugolib.Site, kind string) (outpath string) {
for _, x := range search { for _, x := range search {
// If the new content isn't in a subdirectory, kind == "". // If the new content isn't in a subdirectory, kind == "".
// Therefore it should be excluded otherwise `is a directory` // 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 var pathsToCheck []string
if kind == "" { if kind == "" {

View file

@ -31,7 +31,7 @@ import (
/* /*
This file will test the "making everything a page" transition. 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
*/ */

View file

@ -1339,7 +1339,7 @@ func (p *Page) SetSourceContent(content []byte) {
} }
func (p *Page) SetSourceMetaData(in interface{}, mark rune) (err error) { 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() { defer func() {
if r := recover(); r != nil { if r := recover(); r != nil {
var ok bool var ok bool

View file

@ -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) { func TestParsingDateParallel(t *testing.T) {
t.Parallel() t.Parallel()

View file

@ -63,7 +63,7 @@ func CheckShortCodeMatchAndError(t *testing.T, input, expected string, withTempl
cfg, fs := newTestCfg() 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 := `--- contentFile := `---
title: "Title" title: "Title"
--- ---

View file

@ -87,7 +87,7 @@ type Site struct {
// to get the singular form from that value. // to get the singular form from that value.
taxonomiesPluralSingular map[string]string 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 // Maps "actors-gerard-depardieu" to "Gérard Depardieu" when preserveTaxonomyNames
// is set. // is set.
taxonomiesOrigKey map[string]string taxonomiesOrigKey map[string]string

View file

@ -49,7 +49,7 @@ func createTranslationKey(p *Page) string {
base := p.TranslationBaseName() base := p.TranslationBaseName()
if p.IsNode() { 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 // Must prepend the section and kind to the key to make it unique
base = fmt.Sprintf("%s/%s/%s", p.Kind, p.sections, base) base = fmt.Sprintf("%s/%s/%s", p.Kind, p.sections, base)
} }

View file

@ -113,7 +113,7 @@ var i18nTests = []i18nTest{
expectedFlag: "¡Hola, 50 gente!", expectedFlag: "¡Hola, 50 gente!",
}, },
// Same id and translation in current language // 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{ data: map[string][]byte{
"es.toml": []byte("[hello]\nother = \"hello\""), "es.toml": []byte("[hello]\nother = \"hello\""),

View file

@ -9,9 +9,9 @@ import (
) )
var ( var (
gitHubCommitsApi = "https://api.github.com/repos/spf13/hugo/commits/%s" gitHubCommitsApi = "https://api.github.com/repos/gohugoio/hugo/commits/%s"
gitHubRepoApi = "https://api.github.com/repos/spf13/hugo" gitHubRepoApi = "https://api.github.com/repos/gohugoio/hugo"
gitHubContributorsApi = "https://api.github.com/repos/spf13/hugo/contributors" gitHubContributorsApi = "https://api.github.com/repos/gohugoio/hugo/contributors"
) )
type gitHubCommit struct { type gitHubCommit struct {

View file

@ -29,7 +29,7 @@ import (
) )
const ( const (
issueLinkTemplate = "[#%d](https://github.com/spf13/hugo/issues/%d)" issueLinkTemplate = "[#%d](https://github.com/gohugoio/hugo/issues/%d)"
linkTemplate = "[%s](%s)" linkTemplate = "[%s](%s)"
releaseNotesMarkdownTemplate = ` releaseNotesMarkdownTemplate = `
{{- $patchRelease := isPatch . -}} {{- $patchRelease := isPatch . -}}
@ -56,8 +56,8 @@ And as always a big thanks to [@digitalcraftsman](https://github.com/digitalcraf
Hugo now has: Hugo now has:
{{ with .Repo -}} {{ with .Repo -}}
* {{ .Stars }}+ [stars](https://github.com/spf13/hugo/stargazers) * {{ .Stars }}+ [stars](https://github.com/gohugoio/hugo/stargazers)
* {{ len .Contributors }}+ [contributors](https://github.com/spf13/hugo/graphs/contributors) * {{ len .Contributors }}+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
{{- end -}} {{- end -}}
{{ with .ThemeCount }} {{ with .ThemeCount }}
* 156+ [themes](http://themes.gohugo.io/) * 156+ [themes](http://themes.gohugo.io/)
@ -160,7 +160,7 @@ func writeReleaseNotes(version string, infos gitInfos, to io.Writer) error {
} }
func fetchThemeCount() (int, 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 { if err != nil {
return 0, err return 0, err
} }

View file

@ -139,7 +139,7 @@ func (t *templateHandler) clone(d *deps.Deps) *templateHandler {
vc := template.Must(v.Clone()) vc := template.Must(v.Clone())
// The extra lookup is a workaround, see // The extra lookup is a workaround, see
// * https://github.com/golang/go/issues/16101 // * 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 = vc.Lookup(vc.Name())
vc.Funcs(c.html.funcster.funcMap) vc.Funcs(c.html.funcster.funcMap)
c.html.overlays[k] = vc c.html.overlays[k] = vc
@ -555,7 +555,7 @@ func (t *htmlTemplates) handleMaster(name, overlayFilename, masterFilename strin
// The extra lookup is a workaround, see // The extra lookup is a workaround, see
// * https://github.com/golang/go/issues/16101 // * 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()) overlayTpl = overlayTpl.Lookup(overlayTpl.Name())
if err := applyTemplateTransformersToHMLTTemplate(overlayTpl); err != nil { if err := applyTemplateTransformersToHMLTTemplate(overlayTpl); err != nil {
return err return err