Releases: BlazorStatic/BlazorStatic
Release list
v1.0.0-beta.16
Blog post about this realeasa
https://blazorstatic.net/blog/release-1.0.0-beta.16
What's Changed
- fixes for #59 by @junovell in #61
- Update README.md by @iambipinpaul in #64
- Add unit tests and integrate test execution into workflows by @tesar-tech in #63
- Posts in folders by @tesar-tech in #66
New Contributors
- @iambipinpaul made their first contribution in #64
Full Changelog: v1.0.0-beta.15...v1.0.0-beta.16
v1.0.0-beta.15
What's Changed
- Add support for multiple routes in a single page by @MeltyObserver in #59
- update to tw4, release post by @tesar-tech in #60
Full Changelog: v1.0.0-beta.14...v1.0.0-beta.15
v1.0.0-beta.14
What's Changed
Checkout out the blog post with more details about this release.
- Add flag to exclude example posts on new template. by @patricktcoakley in #38
- Add a basic Editorconfig to help standardize formatting and code style. by @patricktcoakley in #41
- Gha fix by @tesar-tech in #45
- Update README. by @patricktcoakley in #43
- tags improvements - non-url characters by @tesar-tech in #48
- Update README to match repo migration by @patricktcoakley in #50
- Tag class, Tags options and IFrontMatterWithTags. by @tesar-tech in #52
- Update to dotnet9 by @tesar-tech in #54
New Contributors
- @patricktcoakley made their first contribution in #38
Full Changelog: v1.0.0-beta.13...v1.0.0-beta.14
v1.0.0-beta.13
What's Changed
Check out the blog post for more details about the changes.
- Hot reload support. #27 by @tesar-tech in #28
- Paths work for html images in md file by @tesar-tech in #29
- gh action for ff merges by @tesar-tech in #31
- Template creation by @tesar-tech in #30
- Updates residues of the old rename from BlogService to BlazorStaticContentService. Mainly removing the "blog" part, making some method obsolete (replaced with the new name) by @tesar-tech in #34
Full Changelog: v1.0.0-beta10...v1.0.0-beta.13
v1.0.0-beta10
XML sitemap and better way of finding pages
Breaking Changes
RazorPagesPathsis no longer available. It was used to get the location of razor pages to scan for the@pagedirective.
Now, BlazorStatic scans the assembly for all pages.AddNonParametrizedRazorPageswas renamed toAddPagesWithoutParametersas it clearly describes what it is about.
Features/Improvements
- XML sitemap support is included in BlazorStatic.
- Improved page discovery: BlazorStatic automatically discovers all pages and adds them to
PagesToGenerate.
Read more about it in our blog post.
PRs
- Better documentations by @MeltyObserver in #18
- Better docs by @tesar-tech in #19
- Better solution to register pages to generate as static files by @MeltyObserver in #20
- NonParametrized pages rename. by @tesar-tech in #22
- Generate xml Sitemap by @MeltyObserver in #21
Full Changelog: v1.0.0-beta.9...v1.0.0-beta10
v1.0.0-beta.9
Breaking Changes
BlogServicewas renamed toBlazorStaticContentServiceas it now serves a more general purpose.AddBlogServicewas renamed toAddBlazorStaticContentService. Use this in yourProgram.cs.BlogOptionwas renamed toBlazorStaticContentOptions.FrontMatterwas renamed toBlogFrontMatteras it is directly related to blog posts.IFrontMatteris still available and can be used for any front matter of your choice.- The
UseBlog<TFrontMatter>extension was made private and is now handled inUseBlazorStaticGenerator. This makes your code one line shorter (removeUseBlogfrom yourProgram.cs).
Details
In this new version, we renamed Blog related classes and variables to more general names. BlazorStatic is now used for more than just blogs. While the new names are slightly longer (BlogService vs. BlazorStaticContentService), they better capture the essence of what is happening. Additionally, app.UseBlog is no longer necessary as it is now included in app.UseBlazorStaticGenerator.
This is the result in your Program.cs:
Before:
builder.Services
.AddBlogService<FrontMatter>()
.AddBlogService<ProjectFrontMatter>(opt => {
//...
});
//..
app.UseBlog<FrontMatter>();
app.UseBlog<ProjectFrontMatter>();
app.UseBlazorStaticGenerator(shutdownApp: !app.Environment.IsDevelopment()); Now:
builder.Services
.AddBlazorStaticContentService<BlogFrontMatter>()
.AddBlazorStaticContentService<ProjectFrontMatter>(opt => {
//...
});
//..
app.UseBlazorStaticGenerator(shutdownApp: !app.Environment.IsDevelopment()); PRs:
- Rename of BlogService to BlazorStaticContentService. by @tesar-tech and @MeltyObserver in #17
Full Changelog: v1.0.0-beta.8...v1.0.0-beta.9
v1.0.0-beta.8
Breaking changes
TwitterUserNamerenamed toXUserName, inFrontMatterclasses. When you change it, don't forget to also change the metadata in.mdfiles
What's Changed
- Feature/small updates by @tesar-tech in #15
- Fix/pipeline proj by @tesar-tech in #16
Full Changelog: v1.0.0-beta.7...v1.0.0-beta.8
v1.0.0-beta.7
Multiple changes arising from the discussion around this PR:
- Allow for multiple
IFrontMatterimplementations by @MeltyObserver in PR #13
Breaking Changes
- The
BeforeFilesGenerationActionproperty inBlazorStaticOptionshas been removed. UseBlazorStaticOptions.AddBeforeFilesGenerationActioninstead. This change is due to internal handling of blog post parsing. Blog post parsing no longer has a special property (BlogAction) and is now handled byAddBeforeFilesGenerationAction. - Blog posts are now parsed after the custom
beforeFilesGenerationAction(which can be added viaopt.AddBeforeFilesGenerationAction). This change should have no significant effect.
New Features
-
Multiple
BlogServicescan now be used, which is valuable when you have multiple "sections" with different FrontMatter classes. In BlazorStaticWebsite, a new projects section was created to demonstrate this usage. SeeProgram.csandProjectFrontMatter.builder.Services.AddBlogService<FrontMatter>(opt => { }).AddBlogService<ProjectFrontMatter>(opt => { opt.MediaFolderRelativeToContentPath = null; opt.ContentPath = Path.Combine("Content", "Projects"); opt.AddTagPagesFromPosts = false; opt.BlogPageUrl = "projects"; });
This feature revealed a few refactorings (including the breaking changes) that have been done in this new version. It also highlighted that the name
BlogServiceisn't quite precise. We will work on that. -
You can now define the blog media path as
null, which will remove all warnings and errors related to a non-existent folder.builder.Services.AddBlogService<ProjectFrontMatter>(opt => { opt.MediaFolderRelativeToContentPath = null; });
Fixes
-
The program will no longer fail when the media path doesn't exist. It will issue a warning instead.
warn: BlazorStatic.Services.BlogService[0] The folder for the media path (C:\FullPath\BlazorStatic\BlazorStaticWebsite\Content\Projects\media) doesn't exist
Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7
v1.0.0-beta.6
Breaking change
Post<TFrontMatter>.FilenameNoExtensionwas renamed to simplerUrl, It servers the same purpose but is more versatile now.
What's Changed
- Netlify Build Instructions by @IamRewt in #11
- search for posts in sub-directories by @MeltyObserver in #12
New Contributors
Full Changelog: v1.0.0-beta.5...v1.0.0-beta.6
v1.0.0-beta.5
What's Changed
- badge update by @tesar-tech in #8
- Update project dependencies and remove redundant ones by @MeltyObserver in #9
- Use the Posts found in './bin' instead of the root directory by @MeltyObserver in #10
New Contributors
- @MeltyObserver made their first contribution in #9
Full Changelog: https://github.com/tesar-tech/BlazorStatic/commits/v1.0.0-beta.5