Skip to content

Commit

Permalink
Fixed default GenerateSitemap destination
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed May 5, 2020
1 parent 8d493ac commit af187cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 1.0.0-beta.8

- Fixed default `GenerateSitemap` document destination to "sitemap.xml".

# 1.0.0-beta.7

- Added a `IDocument.GetParent()` overload that uses the current execution context and doesn't require passing in a set of candidate documents.
- The `GenerateFeeds` module now replaces relative links in item descriptions and content.
- Added a new `AbsolutizeLinks` module to `Statiq.Html` to turn all links in a document to absolute.
Expand Down
2 changes: 1 addition & 1 deletion src/core/Statiq.Core/Modules/Content/GenerateSitemap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected override async Task<IEnumerable<IDocument>> ExecuteContextAsync(IExecu
sb.Append("</urlset>");

// Always output the site map document, even if it's empty
return context.CreateDocument(await context.GetContentProviderAsync(sb.ToString(), MediaTypes.Xml)).Yield();
return context.CreateDocument("sitemap.xml", await context.GetContentProviderAsync(sb.ToString(), MediaTypes.Xml)).Yield();

async Task AddToSiteMapAsync(IDocument input)
{
Expand Down

0 comments on commit af187cd

Please sign in to comment.