fix: metadata no longer rendered as part of page content
This commit is contained in:
parent
116fb6a883
commit
fdb8753538
2 changed files with 11 additions and 3 deletions
|
@ -93,7 +93,6 @@ func ReadLineRange(filename string, start int, end int) ([]byte, error) {
|
|||
scanner := bufio.NewScanner(file)
|
||||
i := 0
|
||||
for scanner.Scan() {
|
||||
i++
|
||||
if i >= start && (i <= end || end == -1) {
|
||||
buffer.Write(scanner.Bytes())
|
||||
buffer.WriteByte('\n')
|
||||
|
@ -101,6 +100,7 @@ func ReadLineRange(filename string, start int, end int) ([]byte, error) {
|
|||
if i > end && end != -1 {
|
||||
break
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
if err := scanner.Err(); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue