diff --git a/Readme.md b/Readme.md index 53590b52..6a502d0f 100644 --- a/Readme.md +++ b/Readme.md @@ -23,6 +23,7 @@ The appsettings.json file has a lot of options to customize the content of the b ```json { "BlogName": "linkdotnet", + "BlogBrandUrl": "http//some.url/image.png", "GithubAccountUrl": "", "LinkedInAccountUrl": "", "Introduction": { @@ -59,11 +60,12 @@ The appsettings.json file has a lot of options to customize the content of the b | Property | Type | Description | | ------------------------- | -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| BlogName | string | Name of your blog. Is used in the navbar and is used as the title of the page. | +| BlogName | string | Name of your blog. Is used in the navbar and is used as the title of the page. Will not be shown when `BlogBrandUrl` is set | +| BlogBrandUrl | string | The url to an image which is used as a brand image in the navigation bar. If not set or `null` the `BlogName` will be shown | | GithubAccountUrl | string | Url to your github account. If not set the navigation link is not shown | | LinkedInAccountUrl | string | Url to your LinkedIn account. If not set the navigation link is not shown | | Introduction | | Is used for the introduction part of the blog | -| Description | MarkdownString | Small introduction text for yourself. This is also used for `` tag. For this the markup will be converted to plain text. | +| Description | MarkdownString | Small introduction text for yourself. This is also used for `` tag. For this the markup will be converted to plain text | | BackgroundUrl | string | Url or path to the background image | | ProfilePictureUrl | string | Url or path to your profile picture | | PersistenceProvider | string | Declares the type of the storage provider (one of the following: `SqlServer`, `SqliteServer`, `RavenDb`, `InMemory`). More in-depth explanation down below | @@ -161,4 +163,4 @@ Furthermore the following tags are set: | Tag | Index | Display Blog Post | | ---------------------------------------- | ------------------------------------ | ----------------------------- | | Title of the web page | Defined in AppConfiguration.BlogName | Title of the blogpost | -| <meta name="keyword" content="" /> | not set | Tags defined in the Blog Post | +| <meta name="keyword" content="" /> | not set | Tags defined in the Blog Post | \ No newline at end of file diff --git a/src/LinkDotNet.Blog.Web/AppConfiguration.cs b/src/LinkDotNet.Blog.Web/AppConfiguration.cs index 016f9bde..7c7ff97d 100644 --- a/src/LinkDotNet.Blog.Web/AppConfiguration.cs +++ b/src/LinkDotNet.Blog.Web/AppConfiguration.cs @@ -7,6 +7,8 @@ public record AppConfiguration { public string BlogName { get; init; } + public string BlogBrandUrl { get; init; } + public string LinkedinAccountUrl { get; init; } public bool HasLinkedinAccount => !string.IsNullOrEmpty(LinkedinAccountUrl); diff --git a/src/LinkDotNet.Blog.Web/AppConfigurationFactory.cs b/src/LinkDotNet.Blog.Web/AppConfigurationFactory.cs index a8fb78a6..1e2c9ca3 100644 --- a/src/LinkDotNet.Blog.Web/AppConfigurationFactory.cs +++ b/src/LinkDotNet.Blog.Web/AppConfigurationFactory.cs @@ -14,6 +14,7 @@ public static AppConfiguration Create(IConfiguration config) var configuration = new AppConfiguration { BlogName = config["BlogName"], + BlogBrandUrl = config["BlogBrandUrl"], GithubAccountUrl = config["GithubAccountUrl"], LinkedinAccountUrl = config["LinkedInAccountUrl"], Introduction = config.GetSection("Introduction").Get(), diff --git a/src/LinkDotNet.Blog.Web/Shared/MainLayout.razor b/src/LinkDotNet.Blog.Web/Shared/MainLayout.razor index 8bb33233..21d7b28c 100644 --- a/src/LinkDotNet.Blog.Web/Shared/MainLayout.razor +++ b/src/LinkDotNet.Blog.Web/Shared/MainLayout.razor @@ -6,9 +6,7 @@
-
- @Body -
+ @Body
\ No newline at end of file diff --git a/src/LinkDotNet.Blog.Web/Shared/NavMenu.razor b/src/LinkDotNet.Blog.Web/Shared/NavMenu.razor index 8f45b176..2fac2114 100644 --- a/src/LinkDotNet.Blog.Web/Shared/NavMenu.razor +++ b/src/LinkDotNet.Blog.Web/Shared/NavMenu.razor @@ -2,9 +2,20 @@ @inject NavigationManager navigationManager @implements IDisposable -