Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/page__content.go2
-rw-r--r--hugolib/page_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/page__content.go b/hugolib/page__content.go
index 593c5b9a1..1919fb171 100644
--- a/hugolib/page__content.go
+++ b/hugolib/page__content.go
@@ -70,7 +70,7 @@ func (p pageContent) contentToRender(renderedShortcodes map[string]string) []byt
}
default:
- panic(fmt.Sprintf("unkown item type %T", it))
+ panic(fmt.Sprintf("unknown item type %T", it))
}
}
diff --git a/hugolib/page_test.go b/hugolib/page_test.go
index 3a0a76c3d..05dacbe0a 100644
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -560,7 +560,7 @@ func TestPageSummary(t *testing.T) {
assertFunc := func(t *testing.T, ext string, pages page.Pages) {
p := pages[0]
checkPageTitle(t, p, "SimpleWithoutSummaryDelimiter")
- // Source is not Asciidoctor- or RST-compatibile so don't test them
+ // Source is not Asciidoctor- or RST-compatible so don't test them
if ext != "ad" && ext != "rst" {
checkPageContent(t, p, normalizeExpected(ext, "<p><a href=\"https://lipsum.com/\">Lorem ipsum</a> dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>\n\n<p>Additional text.</p>\n\n<p>Further text.</p>\n"), ext)
checkPageSummary(t, p, normalizeExpected(ext, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Additional text."), ext)
@@ -590,7 +590,7 @@ func TestPageWithSummaryParameter(t *testing.T) {
p := pages[0]
checkPageTitle(t, p, "SimpleWithSummaryParameter")
checkPageContent(t, p, normalizeExpected(ext, "<p>Some text.</p>\n\n<p>Some more text.</p>\n"), ext)
- // Summary is not Asciidoctor- or RST-compatibile so don't test them
+ // Summary is not Asciidoctor- or RST-compatible so don't test them
if ext != "ad" && ext != "rst" {
checkPageSummary(t, p, normalizeExpected(ext, "Page with summary parameter and <a href=\"http://www.example.com/\">a link</a>"), ext)
}