Skip to content

Commit 29c059e

Browse files
committed
Added Readme and smaller refactorings
1 parent b88db5b commit 29c059e

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

LinkDotNet.Blog.Web/Shared/MarkdownComponentBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ namespace LinkDotNet.Blog.Web.Shared
55
{
66
public class MarkdownComponentBase : ComponentBase
77
{
8-
protected MarkupString RenderMarkupString(string content)
8+
protected static MarkupString RenderMarkupString(string content)
99
{
10-
var p = new MarkdownPipelineBuilder().UseAdvancedExtensions().UseEmojiAndSmiley().Build();
10+
var markdownPipeline = new MarkdownPipelineBuilder().UseAdvancedExtensions().UseEmojiAndSmiley().Build();
1111

12-
return (MarkupString) Markdown.ToHtml(content, p);
12+
return (MarkupString) Markdown.ToHtml(content, markdownPipeline);
1313
}
1414
}
1515
}

LinkDotNet.Blog.Web/Shared/NavMenu.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<li><a href="#">Home</a></li>
1111
@if (_configuration.HasLinkedinAccount)
1212
{
13-
<li><a href="@_configuration.LinkedinAccountUrl"><i class="fab fa-linkedin"></i> LinkedIn</a></li>
13+
<li><a target="_blank" href="@_configuration.LinkedinAccountUrl"><i class="fab fa-linkedin"></i> LinkedIn</a></li>
1414
}
1515
@if (_configuration.HasGithubAccount)
1616
{
17-
<li><a href="@_configuration.GithubAccountUrl"><i class="fab fa-github"></i> Github</a></li>
17+
<li><a target="_blank" href="@_configuration.GithubAccountUrl"><i class="fab fa-github"></i> Github</a></li>
1818
}
1919
<li><a href="#">Impressum</a></li>
2020
</ul>

LinkDotNet.Blog.Web/Shared/ShortBlogPost.razor.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.blog-card {
22
display: flex;
33
flex-direction: column;
4-
margin: 1rem auto;
54
box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
6-
margin-bottom: 1.6%;
5+
margin: 1rem auto 1.6%;
76
background: #ccc;
87
line-height: 1.4;
98
border-radius: 5px;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace LinkDotNet.Infrastructure
2+
{
3+
public interface IRepository
4+
{
5+
6+
}
7+
}

Readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# LinkDotNet.Blog
2+
This is a blog software completely written in C# / Blazor. The aim is to have it configurable as possible.
3+
4+
## How does it work
5+
The basic idea is that the content creator writes his posts in markdown language (like this readme file).
6+
The markdown will then by translated to HTML and displayed to the client. This gives an easy entry to writing posts with all the flexibility markdown has.

0 commit comments

Comments
 (0)