diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 79cc58269..b492bab2d 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -29,31 +29,31 @@ import (
"github.com/stretchr/testify/assert"
)
-var EMPTY_PAGE = ""
+var emptyPage = ""
const (
- SIMPLE_PAGE = "---\ntitle: Simple\n---\nSimple Page\n"
- INVALID_FRONT_MATTER_MISSING = "This is a test"
- RENDER_NO_FRONT_MATTER = "
This is a test"
- CONTENT_WITH_COMMENTED_FM = "\n\n# Network configuration\n\n##\nSummary"
- CONTENT_WITH_COMMENTED_TEXT_FM = "\n\n# Network configuration\n\n##\nSummary"
- CONTENT_WITH_COMMENTED_LONG_FM = "\n\n# Network configuration\n\n##\nSummary"
- CONTENT_WITH_COMMENTED_LONG2_FM = "\n\n# Network configuration\n\n##\nSummary"
- INVALID_FRONT_MATTER_SHORT_DELIM = `
+ simplePage = "---\ntitle: Simple\n---\nSimple Page\n"
+ invalidFrontMatterMissing = "This is a test"
+ renderNoFrontmatter = "This is a test"
+ contentWithCommentedFrontmatter = "\n\n# Network configuration\n\n##\nSummary"
+ contentWithCommentedTextFrontmatter = "\n\n# Network configuration\n\n##\nSummary"
+ contentWithCommentedLongFrontmatter = "\n\n# Network configuration\n\n##\nSummary"
+ contentWithCommentedLong2Frontmatter = "\n\n# Network configuration\n\n##\nSummary"
+ invalidFrontmatterShortDelim = `
--
title: Short delim start
---
Short Delim
`
- INVALID_FRONT_MATTER_SHORT_DELIM_ENDING = `
+ invalidFrontmatterShortDelimEnding = `
---
title: Short delim ending
--
Short Delim
`
- INVALID_FRONT_MATTER_LEADING_WS = `
+ invalidFrontmatterLadingWs = `
---
title: Leading WS
@@ -61,7 +61,7 @@ title: Leading WS
Leading
`
- SIMPLE_PAGE_JSON = `
+ simplePageJSON = `
{
"title": "spf13-vim 3.0 release and new website",
"description": "spf13-vim is a cross platform distribution of vim plugins and resources for Vim.",
@@ -76,7 +76,7 @@ Leading
Content of the file goes Here
`
- SIMPLE_PAGE_JSON_LOOSE = `
+ simplePageJSONLoose = `
{
"title": "spf13-vim 3.0 release and new website"
"description": "spf13-vim is a cross platform distribution of vim plugins and resources for Vim."
@@ -91,8 +91,8 @@ Content of the file goes Here
Content of the file goes Here
`
- SIMPLE_PAGE_RFC3339_DATE = "---\ntitle: RFC3339 Date\ndate: \"2013-05-17T16:59:30Z\"\n---\nrfc3339 content"
- SIMPLE_PAGE_JSON_MULTIPLE = `
+ simplePageRFC3339Date = "---\ntitle: RFC3339 Date\ndate: \"2013-05-17T16:59:30Z\"\n---\nrfc3339 content"
+ simplePageJSONMultiple = `
{
"title": "foobar",
"customData": { "foo": "bar" },
@@ -101,29 +101,29 @@ Content of the file goes Here
Some text
`
- SIMPLE_PAGE_NOLAYOUT = `---
+ simplePageNoLayout = `---
title: simple_no_layout
---
No Layout called out`
- SIMPLE_PAGE_LAYOUT_FOOBAR = `---
+ simplePageLayoutFoobar = `---
title: simple layout foobar
layout: foobar
---
Layout foobar`
- SIMPLE_PAGE_TYPE_FOOBAR = `---
+ simplePageTypeFoobar = `---
type: foobar
---
type foobar`
- SIMPLE_PAGE_TYPE_LAYOUT = `---
+ simplePageTypeLayout = `---
type: barfoo
layout: buzfoo
---
type and layout set`
- SIMPLE_PAGE_WITH_SUMMARY_DELIMITER = `---
+ simplePageWithSummaryDelimiter = `---
title: Simple
---
Summary Next Line
@@ -131,7 +131,7 @@ Summary Next Line
Some more text
`
- SIMPLE_PAGE_WITH_SHORTCODE_IN_SUMMARY = `---
+ simplePageWithShortcodeInSummary = `---
title: Simple
---
Summary Next Line. {{