mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Correct typos in Go comments
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
17e60b77e1
commit
36ce3a4a9d
@@ -23,7 +23,7 @@ const (
|
||||
KindHome = "home"
|
||||
KindSection = "section"
|
||||
|
||||
// Note tha before Hugo 0.73 these were confusingly named
|
||||
// Note that before Hugo 0.73 these were confusingly named
|
||||
// taxonomy (now: term)
|
||||
// taxonomyTerm (now: taxonomy)
|
||||
KindTaxonomy = "taxonomy"
|
||||
|
@@ -22,7 +22,7 @@ func (p Pages) Next(cur Page) Page {
|
||||
return p[x-1]
|
||||
}
|
||||
|
||||
// Prev returns the previous page reletive to the given
|
||||
// Prev returns the previous page relative to the given
|
||||
func (p Pages) Prev(cur Page) Page {
|
||||
x := searchPage(cur, p)
|
||||
|
||||
|
@@ -62,7 +62,7 @@ type Site interface {
|
||||
// Returns the BaseURL for this Site.
|
||||
BaseURL() template.URL
|
||||
|
||||
// Retuns a taxonomy map.
|
||||
// Returns a taxonomy map.
|
||||
Taxonomies() TaxonomyList
|
||||
|
||||
// Returns the last modification date of the content.
|
||||
|
@@ -164,7 +164,7 @@ func resolveComponentInAssets(fs afero.Fs, impPath string) *hugofs.FileMeta {
|
||||
var m *hugofs.FileMeta
|
||||
|
||||
// We need to check if this is a regular file imported without an extension.
|
||||
// There may be ambigous situations where both foo.js and foo/index.js exists.
|
||||
// There may be ambiguous situations where both foo.js and foo/index.js exists.
|
||||
// This import order is in line with both how Node and ESBuild's native
|
||||
// import resolver works.
|
||||
|
||||
|
Reference in New Issue
Block a user