bobdenotter / sitemap

Provide a sitemap (.xml) for your Bolt 4 site
MIT License
5 stars 4 forks source link

Sitemap shows unpublished items #1

Closed evertalbers closed 3 years ago

evertalbers commented 3 years ago

Hi!

Installed sitemap 1.0.1 and in the sitemap.xml I see

<?xml version="1.0" encoding="UTF-8"?>
--
  | <?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
  | <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  | <url>
  | <loc>http://127.0.0.1:8000/sitemap.xml</loc>
  | <lastmod>2020-09-24T22:58:16+00:00</lastmod>
  | <changefreq>weekly</changefreq>
  | <priority>0.8</priority>
  | </url>
  | <url>
  | <loc>http://127.0.0.1:8000/newsitem/dit-is-een-test-newsitem</loc>
  | <lastmod>2020-09-24T21:20:28+00:00</lastmod>
  | <changefreq>weekly</changefreq>
  | <priority>0.8</priority>

The second item shown here is, er, shown although the status is draft or held.

On a positive note, good to see that manual changes in the routing no longer seem te be required!

bobdenotter commented 3 years ago

@evertalbers Good catch!

If you run composer update, you'll get version 1.0.2, which is fixed.