Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: BlazorStatic/BlazorStatic

v1.0.0-beta.16

Choose a tag to compare

@tesar-tech tesar-tech released this 13 Nov 18:28
2625509

Blog post about this realeasa

https://blazorstatic.net/blog/release-1.0.0-beta.16

What's Changed

New Contributors

Full Changelog: v1.0.0-beta.15...v1.0.0-beta.16

v1.0.0-beta.15

Choose a tag to compare

@tesar-tech tesar-tech released this 17 Apr 19:43
3f8887a

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

Choose a tag to compare

@tesar-tech tesar-tech released this 05 Jan 21:09

What's Changed

Checkout out the blog post with more details about this release.

New Contributors

Full Changelog: v1.0.0-beta.13...v1.0.0-beta.14

v1.0.0-beta.13

Choose a tag to compare

@tesar-tech tesar-tech released this 08 Oct 06:42

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

Choose a tag to compare

@tesar-tech tesar-tech released this 30 Aug 12:38

XML sitemap and better way of finding pages

Breaking Changes

  • RazorPagesPaths is no longer available. It was used to get the location of razor pages to scan for the @page directive.
    Now, BlazorStatic scans the assembly for all pages.
  • AddNonParametrizedRazorPages was renamed to AddPagesWithoutParameters as 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

Choose a tag to compare

@tesar-tech tesar-tech released this 26 Jun 13:10

Breaking Changes

  • BlogService was renamed to BlazorStaticContentService as it now serves a more general purpose.
  • AddBlogService was renamed to AddBlazorStaticContentService. Use this in your Program.cs.
  • BlogOption was renamed to BlazorStaticContentOptions.
  • FrontMatter was renamed to BlogFrontMatter as it is directly related to blog posts. IFrontMatter is still available and can be used for any front matter of your choice.
  • The UseBlog<TFrontMatter> extension was made private and is now handled in UseBlazorStaticGenerator. This makes your code one line shorter (remove UseBlog from your Program.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

Choose a tag to compare

@tesar-tech tesar-tech released this 12 Jun 15:08
4633a64

Breaking changes

  • TwitterUserName renamed to XUserName, in FrontMatter classes. When you change it, don't forget to also change the metadata in .md files

What's Changed

Full Changelog: v1.0.0-beta.7...v1.0.0-beta.8

v1.0.0-beta.7

Choose a tag to compare

@tesar-tech tesar-tech released this 12 Jun 12:57

Multiple changes arising from the discussion around this PR:

  • Allow for multiple IFrontMatter implementations by @MeltyObserver in PR #13

Breaking Changes

  • The BeforeFilesGenerationAction property in BlazorStaticOptions has been removed. Use BlazorStaticOptions.AddBeforeFilesGenerationAction instead. 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 by AddBeforeFilesGenerationAction.
  • Blog posts are now parsed after the custom beforeFilesGenerationAction (which can be added via opt.AddBeforeFilesGenerationAction). This change should have no significant effect.

New Features

  • Multiple BlogServices can 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. See Program.cs and ProjectFrontMatter.

    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 BlogService isn'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

Choose a tag to compare

@tesar-tech tesar-tech released this 30 May 19:29

Breaking change

  • Post<TFrontMatter>.FilenameNoExtension was renamed to simpler Url, 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

Choose a tag to compare

@tesar-tech tesar-tech released this 15 May 10:16

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