CivicActions / accessibility

CivicActions Accessibility Site: A collection of resources about digital accessibility and how it aligns with open source, CivicTech and Digital Transformation.
https://accessibility.civicactions.com
Other
27 stars 11 forks source link

Generate sitemap.xml for the accessibility site #65

Closed dmundra closed 3 years ago

dmundra commented 3 years ago

@lukefretwell, I found this plugin https://github.com/jekyll/jekyll-sitemap to generate a sitemap for Jekyll but there might be a different way to do that.

Cc: @jerseycheese

lukefretwell commented 3 years ago

@dmundra can you verify I did this successfully and close the issue if yes?

dmundra commented 3 years ago

@lukefretwell, looking good https://civicactions.github.io/accessibility/sitemap.xml. Thank you!

dmundra commented 3 years ago

Whoops, spoke too soon. It looks like there is an extra /accessibility/ in the path. E.g.s

dmundra commented 3 years ago

@lukefretwell changing the URL on this line https://github.com/CivicActions/accessibility/blob/105b93d951bf13d6ff5ca4e10c0c56e80fa0592e/_config.yml#L12 to 'https://civicactions.github.io' probably will do it.

lukefretwell commented 3 years ago

@dmundra my fear is that will break the website on GitHub Pages. I'll try this when I push the new code shortly and will revert if it breaks.

@brianseek @grugnog thoughts on what the issue is here?

dmundra commented 3 years ago

@lukefretwell looks like the change didn't work as I saw you revert it?

brianseek commented 3 years ago

@dmundra my fear is that will break the website on GitHub Pages. I'll try this when I push the new code shortly and will revert if it breaks.

@brianseek @grugnog thoughts on what the issue is here?

@lukefretwell I thought that this may be related to similar baseurl issues that you were having in the past, but I don't think it is. I think the next step would be to crack open the sitemap script and see how it is putting the URLs together to see where the double /accessibility/ is coming from. A simple alternative would be to just create the sitemap manually for now.

dmundra commented 3 years ago

I found these to create the sitemap without the plugin:

dmundra commented 3 years ago

Looking good https://civicactions.github.io/accessibility/sitemap.xml and I think this can be closed now.