@@ -41,60 +41,63 @@ else if (BlogPost is not null)
41
41
Author =" @ProfileInformation.Value.Name" />
42
42
</OgData >
43
43
44
- <div class =" d-flex justify-content-center pt-2 blog-outer-box" >
45
- <div class =" blog-container" >
46
- <div class =" blog-inner-content" >
44
+ <div class =" d-flex justify-content-center pt-2" >
45
+ <div class =" bg-body w-100 px-3 px-md-4 px-lg-5 py-4 shadow rounded"
46
+ style =" max-width : 90% ;" >
47
+ <div >
47
48
<header class =" text-center" >
48
- <h1 class =" fw-bold" >@BlogPost.Title </h1 ></header >
49
- <div class =" text-dark-emphasis d-flex flex-wrap gap-2" >
50
- <div class =" me-2" >
51
- <span class =" date" ></span >
52
- <span class =" ms-1" >@BlogPost.UpdatedDate.ToShortDateString() </span >
49
+ <h1 class =" fw-bold" >@BlogPost.Title </h1 >
50
+ </header >
51
+ <div class =" text-body-secondary d-flex flex-wrap gap-2" >
52
+ <div class =" me-2 d-flex align-items-center" >
53
+ <span class =" me-1" >
54
+ <i class =" date" ></i > @BlogPost.UpdatedDate.ToShortDateString()
55
+ </span >
56
+ </div >
57
+ <div class =" me-2 d-flex align-items-center" >
58
+ <i class =" read-time me-1" ></i >
59
+ <span >@BlogPost.ReadingTimeInMinutes minute read </span >
53
60
</div >
54
- <span class =" read-time" ></span >
55
- <span class =" me-2" >@BlogPost.ReadingTimeInMinutes minute read </span >
56
61
<div class =" d-flex align-items-center" >
57
62
<BookmarkButton IsBookmarked =" isBookmarked" Bookmarked =" BlogPostBookmarked" ></BookmarkButton >
58
63
</div >
59
64
@if (BlogPost .Tags is not null && BlogPost .Tags .Any ())
60
65
{
61
66
<div class =" d-flex align-items-center" >
62
- <span class =" blogpost -tag me-2" ></span >
67
+ <i class =" bi bi -tag me-2" ></i > <!-- bi = bootstrap icons / fas = font awesome -- >
63
68
<div class =" d-flex flex-wrap gap-2" >
64
69
@foreach ( var tag in BlogPost .Tags )
65
70
{
66
- <a class =" goto-tag badge bg-primary rounded-pill text-decoration-none" href =" /searchByTag/@(Uri.EscapeDataString(tag))" >@tag </a >
71
+ <a class =" badge bg-primary rounded-pill text-decoration-none"
72
+ href =" /searchByTag/@(Uri.EscapeDataString(tag))" >@tag </a >
67
73
}
68
74
</div >
69
75
</div >
70
76
}
71
77
</div >
72
-
73
78
<div class =" pt-2" >
74
- <BlogPostAdminActions BlogPostId =" @BlogPostId" ></ BlogPostAdminActions >
79
+ <BlogPostAdminActions BlogPostId =" @BlogPostId" / >
75
80
</div >
76
-
77
81
<div class =" pt-2" >
78
- <TableOfContents Content =" @BlogPost.Content" CurrentUri =" @NavigationManager.Uri" ></ TableOfContents >
82
+ <TableOfContents Content =" @BlogPost.Content" CurrentUri =" @NavigationManager.Uri" / >
79
83
</div >
80
-
81
- <div class =" blogpost-content" >
84
+ <div class =" pt-3 overflow-hidden" >
82
85
@( EnrichWithShortCodes (BlogPost .Content ))
83
86
</div >
84
87
</div >
85
88
<div class =" d-flex justify-content-between py-2 border-top border-bottom align-items-center" >
86
- <Like BlogPost =" @BlogPost" OnBlogPostLiked =" @UpdateLikes" ></ Like >
87
- <ShareBlogPost ></ ShareBlogPost >
89
+ <Like BlogPost =" @BlogPost" OnBlogPostLiked =" @UpdateLikes" / >
90
+ <ShareBlogPost / >
88
91
</div >
89
- @if (SupportConfiguration .Value .ShowUnderBlogPost )
90
- {
91
- <DonationSection />
92
- }
93
- @if (AppConfiguration .Value .ShowSimilarPosts )
92
+ @if (SupportConfiguration .Value .ShowUnderBlogPost )
93
+ {
94
+ <DonationSection />
95
+ }
96
+ @if (AppConfiguration .Value .ShowSimilarPosts )
94
97
{
95
98
<SimilarBlogPostSection BlogPost =" @BlogPost" />
96
99
}
97
- <CommentSection ></ CommentSection >
100
+ <CommentSection / >
98
101
</div >
99
102
</div >
100
103
0 commit comments