tlienart / Franklin.jl

(yet another) static site generator. Simple, customisable, fast, maths with KaTeX, code evaluation, optional pre-rendering, in Julia.
https://franklinjl.org
MIT License
932 stars 108 forks source link

XML prolog lost from RSS template #1057

Closed McSinyx closed 7 months ago

McSinyx commented 8 months ago

I want to make the feed human readable asking the browser to apply some XSLT, e.g. in _rss/head.xml

<?xml-stylesheet type="text/xsl" href="/assets/feed.xslt"?>

However, this line isn't present in the output feed.

tlienart commented 7 months ago

this

https://github.com/tlienart/Franklin.jl/blob/fde286de36e4fd1037dbf24e3dfc73c3f52675ad/src/manager/rss_generator.jl#L86-L90

is the likely culprit. I'm not familiar with the syntax you quote but we could definitely have logic that skips <?...?>

Could you:

  1. copy paste the content of your _rss/head.html here
  2. show the head of the generated rss file that you got?
McSinyx commented 7 months ago

I cannot reproduce this, I think I followed the link to the production feed (and not the newly generated one). Sorry for the noise :sweat_smile: