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

add sitemap_file as a global option #1049

Closed tlienart closed 9 months ago

tlienart commented 9 months ago

@mortenpi would you mind trying this out?

closes #1047 by adding a global variable sitemap_file if the user wants something else than sitemap(.xml).

config.md

+++
# ... rest
sitemap_file = "mySitemap"
# ... rest
+++

--> mySitemap.xml will be generated (instead of default sitemap.xml)

mortenpi commented 9 months ago

Yep, this is perfect! Thank you!

Just as some bikeshedding: the option could also be called sitemap_filename maybe, to make it clear that it should not be a path?

tlienart commented 9 months ago

Agreed, in the next version there are aliases for default variables which makes that stuff a bit easier (just add more aliases!) but agreed that filename is better, will add.

tlienart commented 9 months ago

added sitemap_filename and rss_filename as aliases for sitemap_file and rss_file. will merge now, thanks for the FR!

mortenpi commented 9 months ago

Thank you for implementing it!