diff --git a/Directory.Packages.props b/Directory.Packages.props index a2acdab2..01676e2d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -31,6 +31,7 @@ + diff --git a/MIGRATION.md b/MIGRATION.md index 5ce5a688..a2dccdfe 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,6 +1,16 @@ # Migration Guide This document describes the changes that need to be made to migrate from one version of the blog to another. +## 11.0 to 12.0 +`ShowBuildInformation` setting was added on the root level of the `appsettings.json` file. This setting controls whether build information (like build date) is shown in the `Footer` component. + +```json +{ + ... + "ShowBuildInformation": true +} +``` + ## 9.0 to 11.0 A new config has been added `UseMultiAuthorMode` in `appsettings.json`. The default value of this config is `false`. If set to `true` then author name will be associated with blog posts at the time of creation. diff --git a/docs/Setup/Configuration.md b/docs/Setup/Configuration.md index aa8ace18..6b96e17a 100644 --- a/docs/Setup/Configuration.md +++ b/docs/Setup/Configuration.md @@ -48,6 +48,7 @@ The appsettings.json file has a lot of options to customize the content of the b }, "ShowReadingIndicator": true, "SimlarBlogPosts": "true", + "ShowBuildInformation": true, "SupportMe": { "KofiToken": "ABC123", "GithubSponsorName": "your-tag-here", @@ -102,6 +103,7 @@ The appsettings.json file has a lot of options to customize the content of the b | [Disqus](./../Comments/Disqus.md) | node | Enables the comment section via disqus. If left empty the comment section will not be shown. | | ShowReadingIndicator | boolean | If set to `true` (default) a circle indicates the progress when a user reads a blog post (without comments). | | SimilarBlogPosts | boolean | If set to `true` (default) similar blog posts are shown at the end of a blog post. | +| ShowBuildInformation | boolean | If set to `true` (default) the build information (target framework and build timestamp) is shown in the footer. | | [SupportMe](./../Donations/Readme.md) | node | Donation sections configuration. If left empty no donation sections will not be shown. | | [ImageStorageProvider](./../Media/Readme.md) | string | Declares the type of the image storage provider (currently only `Azure`). | | [ImageStorage](./../Media/Readme.md) | node | Configuration for the image storage provider. | diff --git a/src/LinkDotNet.Blog.Web/ApplicationConfiguration.cs b/src/LinkDotNet.Blog.Web/ApplicationConfiguration.cs index 5db35a25..6a866d49 100644 --- a/src/LinkDotNet.Blog.Web/ApplicationConfiguration.cs +++ b/src/LinkDotNet.Blog.Web/ApplicationConfiguration.cs @@ -24,5 +24,7 @@ public sealed record ApplicationConfiguration public bool ShowSimilarPosts { get; init; } + public bool ShowBuildInformation { get; init; } = true; + public bool UseMultiAuthorMode { get; init; } } diff --git a/src/LinkDotNet.Blog.Web/Features/Home/Components/Footer.razor b/src/LinkDotNet.Blog.Web/Features/Home/Components/Footer.razor index ca38619e..000996e3 100644 --- a/src/LinkDotNet.Blog.Web/Features/Home/Components/Footer.razor +++ b/src/LinkDotNet.Blog.Web/Features/Home/Components/Footer.razor @@ -4,12 +4,19 @@ @inject IOptions ProfileInformation @inject IOptions SupportConfiguration -