Closed mwhouser closed 6 years ago
I'm not sure how our plugin could be causing this. Is your repo public? I'd love to see a specific example.
My repo is not public. I just tried the following:
{% assign pages = site.html_pages %}
{% for page in pages %}
<url>
<loc>{{ page.url }}</loc>
{% if page.last_modified_at %}
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod>
{% endif %}
</url>
{% endfor %}
and it looks like the page.url
has /archives
and /404
in it. So it's getting passed like that from Jekyll.
If you're still interested, I created a public repo here that shows it:
This seems like a bug in Jekyll. I don't know why nobody has previously reported this.
Please open an issue at jekyll/jekyll
@mwhouser According to your test-repo, the culprit seems to be your permalink
configuration. Changing it as following should fix your issue:
- permalink: /:year/:month/:title.html
+ permalink: /:year/:month/:title:output_ext
The behavior was changed in https://github.com/jekyll/jekyll/commit/b6c283a4aee531a06ba6b3c9cde5e972889c7471 but the official documentation left as is..
@ashmaroli, changing my permalink
fixed it for me. Thanks.
I have 2
.html
files in my root folder that generate as.html
by Jekyll. However, jekyll-sitemap is including them insitemap.xml
as folders.Example 1:
File:
/archives.html
Jekyll Generates:/archives.html
Sitemap.xml includes:/archives
Example 2:
File:
/404.html
Jekyll Generates:/404.html
Sitemap.xml includes:/404