diff options
Diffstat (limited to 'resources/page/page_generate/generate_page_wrappers.go')
-rw-r--r-- | resources/page/page_generate/generate_page_wrappers.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/page/page_generate/generate_page_wrappers.go b/resources/page/page_generate/generate_page_wrappers.go index ff3744c20..e1d83115b 100644 --- a/resources/page/page_generate/generate_page_wrappers.go +++ b/resources/page/page_generate/generate_page_wrappers.go @@ -81,7 +81,7 @@ func generateMarshalJSON(c *codegen.Inspector) error { // Exclude these methods excludes := []reflect.Type{ - // We need to eveluate the deprecated vs JSON in the future, + // We need to evaluate the deprecated vs JSON in the future, // but leave them out for now. pageInterfaceDeprecated, @@ -146,7 +146,7 @@ func generateDeprecatedWrappers(c *codegen.Inspector) error { "Hugo": "Use the global hugo function.", "LanguagePrefix": "Use .Site.LanguagePrefix.", "GetParam": "Use .Param or .Params.myParam.", - "RSSLink": `Use the Output Format's link, e.g. something like: + "RSSLink": `Use the Output Format's link, e.g. something like: {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}`, "URL": "Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url", } @@ -244,8 +244,8 @@ package page %s // ZeroFile represents a zero value of source.File with warnings if invoked. -type zeroFile struct { - log *helpers.DistinctLogger +type zeroFile struct { + log *helpers.DistinctLogger } func NewZeroFile(log *helpers.DistinctLogger) source.File { |