fix: metadata no longer rendered as part of page content

This commit is contained in:
Daniel Fichtinger 2025-03-24 00:44:36 -04:00
parent 116fb6a883
commit fdb8753538
2 changed files with 11 additions and 3 deletions

View file

@ -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 {