front matter results in blank line at top of output - spoiling my XML output #2564
-
|
Following guides for a sitemap I've created a sitemap.njk file with front matter defining the permalink, etc., which loops though collections.all and outputs XML correctly formatted as a sitemap, except for the blank line left where the front matter was in the template. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Maybe try adding the Nunjucks |
Beta Was this translation helpful? Give feedback.
Maybe try adding the Nunjucks
trimfilter when outputting the{{ content | safe | trim }}in your layout?