aboutsummaryrefslogtreecommitdiff
path: root/layouts/_partials/header.html
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-09-20 00:00:00 +0000
committerNicholas Johnson <>2026-09-20 00:00:00 +0000
commita221ae3c6f8da11b12eea4246f5792123c501f221f0e708456c0a5dd24c8d8a0 (patch)
tree7125b1e70be7d2829c71e297190eb12d427f540a60472fd258951c9973263e1e /layouts/_partials/header.html
parent93831052e8ba9537d47474e1f8dbf04d9eceb9b0dff214ce422fcafe1ffaecac (diff)
downloadhugo-theme-journal-a221ae3c6f8da11b12eea4246f5792123c501f221f0e708456c0a5dd24c8d8a0.tar.gz
hugo-theme-journal-a221ae3c6f8da11b12eea4246f5792123c501f221f0e708456c0a5dd24c8d8a0.zip
End every template file with a newline
Fifteen templates ended without a final newline, so they were not text files by the POSIX definition: tools that read whole lines, including sed, wc -l, read and shells' command substitution, drop or mangle the last line, and diffs of them carry a "\ No newline at end of file" marker that hides which side changed. Add the newline. The gemtext output may not change, so the four templates whose last action is emitted verbatim into a capsule page trim it away again with "-}}". The templates that end by closing a define block need no marker, since the newline then falls outside the block and is never executed, as section.gmi and single.gmi already showed. The capsule builds byte-identical gemtext and the feeds are unchanged. Web pages gain the trailing newline their templates now have, which ends the generated HTML with an EOL too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_partials/header.html')
0 files changed, 0 insertions, 0 deletions