generate-sitemap 1.10.1 Released

cicirello

Vincent A. Cicirello

Posted on June 8, 2024

generate-sitemap 1.10.1 Released

TL;DR

I just released generate-sitemap 1.10.1, a GitHub Action for generating XML sitemaps for static websites. The generate-sitemap GitHub Action is implemented in Python, and generates an XML sitemap by crawling the GitHub repository containing the html of the site, using commit dates to generate <lastmod> tags in the sitemap.

Changelog 1.10.1 - 2024-06-08

Fixed

  • Escape characters that must be escaped in XML.

Dependencies

More Information

Please consider starring generate-sitemap's GitHub repository:

GitHub logo cicirello / generate-sitemap

Generate an XML sitemap for a GitHub Pages site using GitHub Actions

generate-sitemap

cicirello/generate-sitemap - Generate XML sitemaps for static websites in GitHub Actions

Check out all of our GitHub Actions: https://actions.cicirello.org/

About

GitHub Actions GitHub release (latest by date) Count of Action Users
Build Status build CodeQL
Source Info GitHub GitHub top language
Support GitHub Sponsors Liberapay Ko-Fi

The generate-sitemap GitHub action generates a sitemap for a website hosted on GitHub Pages, and has the following features:

  • Support for both xml and txt sitemaps (you choose using one of the action's inputs).
  • When generating an xml sitemap, it uses the last commit date of each file to generate the <lastmod> tag in the sitemap entry. If the file was created during that workflow run, but not yet committed, then it instead uses the current date (however, we recommend if possible committing newly created files first).
  • Supports URLs for html and pdf files in the sitemap, and has inputs to control the included file types (defaults include both html and pdf files in the sitemap).
  • Now also supports including URLs for a user specified list of additional file extensions in the sitemap.

For more information, see my earlier post about generate-sitemap here on DEV, as well as its webpage.

generate-sitemap - Generate an XML sitemap for a GitHub pages site using GitHub Actions

The generate-sitemap GitHub action generates a sitemap for a website hosted on GitHub Pages. Supports both xml and txt sitemaps. Uses the last commit date of each file to generate the lastmod tags in XML sitemaps. Parses robots.txt and scans html files for noindex directives, excluding URLs if noindex directives or disallows found.

favicon actions.cicirello.org

Where You Can Find Me

Follow me here on DEV and on GitHub:

💖 💪 🙅 🚩
cicirello
Vincent A. Cicirello

Posted on June 8, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

generate-sitemap 1.10.0 Released
github generate-sitemap 1.10.0 Released

November 15, 2023

generate-sitemap 1.9.2 Released
github generate-sitemap 1.9.2 Released

October 5, 2023

generate-sitemap 1.9.1 Released
github generate-sitemap 1.9.1 Released

January 17, 2023