mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
all: Update textual references in Go source to point to gohugoio/hugo
This commit is contained in:
parent
d8717cd4c7
commit
c17ad675e8
14 changed files with 20 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 == "" {
|
||||
|
|
|
@ -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
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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"
|
||||
---
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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\""),
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue