-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong sitemap for keep_path
#1008
Comments
Thanks for the report,
Franklin.jl/src/manager/sitemap_generator.jl Lines 45 to 61 in 154f553
is the function that adds sitemap entries. They are effectively written to the XML file in this loop: Franklin.jl/src/manager/sitemap_generator.jl Lines 77 to 91 in 154f553
loc part is
where the
So we need to investigate Lines 125 to 140 in a66817e
adding the following at the end of that function if contains(fn, "test")
@show locvar(:fd_rpath)
@show fn
end and going through OP's example:
So that's where the culprit is. FixThe
rpath = locvar(:fd_rpath)
keep = globvar(:keep_path)::Vector{String}
rpath in keep && return rpath
fn, ext = splitext(rpath) and, sure enough,
PR incoming. other notes: am a bit nervous about the use of |
closed by #1009 |
Thanks for the quick fix! |
Hi,
I just noticed that the sitemap is wrong for paths wich are in
keep_path
.To reproduce:
I expected
https://tlienart.github.io/FranklinTemplates.jl/test.html
as location in the sitemap.I tried some minutes to find where this goes wrong but didn't get very far.
The text was updated successfully, but these errors were encountered: