mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
More initialism corrections (golint)
Thanks to @bep's new, brilliant helpers.Deprecated() function, the following functions or variables are transitioned to their new names, preserving backward compatibility for v0.14 and warning the user of upcoming obsolescence in v0.15: * .Url → .URL (for node, menu and paginator) * .Site.BaseUrl → .Site.BaseURL * .Site.Indexes → .Site.Taxonomies * .Site.Recent → .Site.Pages * getJson → getJSON * getCsv → getCSV * safeHtml → safeHTML * safeCss → safeCSS * safeUrl → safeURL Also fix related initialisms in strings and comments. Continued effort in fixing #959.
This commit is contained in:
parent
ca69cad8aa
commit
8b8fb417ae
20 changed files with 184 additions and 129 deletions
|
@ -330,7 +330,7 @@ func PathPrep(ugly bool, in string) string {
|
|||
return PrettifyPath(in)
|
||||
}
|
||||
|
||||
// Same as PrettifyUrlPath() but for file paths.
|
||||
// Same as PrettifyURLPath() but for file paths.
|
||||
// /section/name.html becomes /section/name/index.html
|
||||
// /section/name/ becomes /section/name/index.html
|
||||
// /section/name/index.html becomes /section/name/index.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue