Skip to content

Commit

Permalink
Merge pull request #10 from refinedmods/release/0.2.1
Browse files Browse the repository at this point in the history
Release v0.2.1
  • Loading branch information
raoulvdberge authored Dec 24, 2023
2 parents 0f3f558 + a04dc47 commit ab8602e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.2.1] - 2023-12-24

### Fixed

- Fixed trying to generate sitemap for empty component.

## [0.2.0] - 2023-12-24

### Added
Expand All @@ -31,7 +37,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Initial release.

[Unreleased]: https://github.com/refinedmods/refinedsites/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/refinedmods/refinedsites/compare/v0.2.1...HEAD

[0.2.1]: https://github.com/refinedmods/refinedsites/compare/v0.2.0...v0.2.1

[0.2.0]: https://github.com/refinedmods/refinedsites/compare/v0.1.2...v0.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ private Path getComponentOutputPath(final Component component) throws IOExceptio
private WebSitemapGenerator getWebSitemapGenerator(final Component component,
final String sitemapBaseUrl,
final Path componentOutputPath) {
if (component.getPages().isEmpty()) {
return null;
}
if (component.isLatest()) {
try {
return new WebSitemapGenerator(sitemapBaseUrl, componentOutputPath.toFile());
Expand Down

0 comments on commit ab8602e

Please sign in to comment.