diff options
author | Albert Nigmatzianov <albertnigma@gmail.com> | 2016-10-24 21:56:00 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-10-24 21:56:00 +0300 |
commit | f21e2f25c99c547a2f35d209935f8f1c52fa2671 (patch) | |
tree | f2bb860213e88b0244c31144cfcd872665096f06 /helpers/content.go | |
parent | d9f54a13c14f12ccc8af33e9dbd611c2cd113324 (diff) |
all: Unify case of config variable names
All config variables starts with low-case and uses camelCase.
If there is abbreviation at the beginning of the name, the whole
abbreviation will be written in low-case.
If there is abbreviation at the end of the name, the
whole abbreviation will be written in upper-case.
For example, rssURI.
Diffstat (limited to 'helpers/content.go')
-rw-r--r-- | helpers/content.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/helpers/content.go b/helpers/content.go index 5c9533330..eb8987b33 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -182,8 +182,8 @@ func BytesToHTML(b []byte) template.HTML { // getHTMLRenderer creates a new Blackfriday HTML Renderer with the given configuration. func getHTMLRenderer(defaultFlags int, ctx *RenderingContext) blackfriday.Renderer { renderParameters := blackfriday.HtmlRendererParameters{ - FootnoteAnchorPrefix: viper.GetString("FootnoteAnchorPrefix"), - FootnoteReturnLinkContents: viper.GetString("FootnoteReturnLinkContents"), + FootnoteAnchorPrefix: viper.GetString("footnoteAnchorPrefix"), + FootnoteReturnLinkContents: viper.GetString("footnoteReturnLinkContents"), } b := len(ctx.DocumentID) != 0 @@ -271,8 +271,8 @@ func markdownRender(ctx *RenderingContext) []byte { // getMmarkHTMLRenderer creates a new mmark HTML Renderer with the given configuration. func getMmarkHTMLRenderer(defaultFlags int, ctx *RenderingContext) mmark.Renderer { renderParameters := mmark.HtmlRendererParameters{ - FootnoteAnchorPrefix: viper.GetString("FootnoteAnchorPrefix"), - FootnoteReturnLinkContents: viper.GetString("FootnoteReturnLinkContents"), + FootnoteAnchorPrefix: viper.GetString("footnoteAnchorPrefix"), + FootnoteReturnLinkContents: viper.GetString("footnoteReturnLinkContents"), } b := len(ctx.DocumentID) != 0 |