Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More initialism corrections (golint) #970

Closed
wants to merge 2 commits into from

Commits on Mar 18, 2015

  1. 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 gohugoio#959.
    anthonyfok committed Mar 18, 2015
    Configuration menu
    Copy the full SHA
    6cdf539 View commit details
    Browse the repository at this point in the history
  2. Update Hugo docs with the initialisms suggested by golint

    In particular:
    
     * .Url → .URL (for node, menu and paginator)
     * .Site.BaseUrl → .Site.BaseURL
     * getJson → getJSON
     * getCsv → getCSV
     * safeHtml → safeHTML
     * safeCss → safeCSS
     * safeUrl → safeURL
    
    Continued effort in fixing gohugoio#959.
    anthonyfok committed Mar 18, 2015
    Configuration menu
    Copy the full SHA
    41d3769 View commit details
    Browse the repository at this point in the history