diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-07-31 15:36:36 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-01 14:55:48 +0300 |
commit | f7f549e3a7492c787c6abb4900cc0f57c8ab1826 (patch) | |
tree | 18b82b0d343893e0f6e22fac9a6ca5e0f19fc876 /hugolib | |
parent | 6512d128c6d33b86f376764ab1d622a89ea18d20 (diff) |
Fix assorted typos
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page__content.go | 2 | ||||
-rw-r--r-- | hugolib/page_test.go | 4 |
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) } |