diff options
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index 81ba68aa4..27a60a186 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -328,6 +328,7 @@ func (p *pageState) RawContent() string { if start == -1 { start = 0 } + return string(p.source.parsed.Input()[start:]) } @@ -727,9 +728,7 @@ Loop: frontMatterSet = true next := iter.Peek() - if !next.IsDone() { - p.source.posMainContent = next.Pos() - } + p.source.posMainContent = next.Pos() if !p.s.shouldBuild(p) { // Nothing more to do. |