Skip to content

Commit

Permalink
_WidgetsProfile partial view
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 28, 2023
1 parent c381a5f commit bee6cea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
19 changes: 1 addition & 18 deletions src/Moonglade.Web/Pages/Shared/_Aside.cshtml
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
<aside class="col-lg-3 d-none d-lg-block">
@if (BlogConfig.GeneralSettings.WidgetsProfile)
{
<section class="blog-info-desktop-lg text-light d-none d-lg-block">
<div class="card-bkimg-container">
<img class="card-bkimg" alt="" src="@BlogConfig.GeneralSettings.AvatarUrl" />
</div>
<div class="blog-info-photo-text text-center">
<img src="@BlogConfig.GeneralSettings.AvatarUrl"
alt="@BlogConfig.GeneralSettings.OwnerName"
class="rounded-circle blogger-head-pic" />
<div>
<h3 class="mt-3 text-white font-sairas">
@BlogConfig.GeneralSettings.OwnerName
</h3>
<p class="me-3 ms-3">
@BlogConfig.GeneralSettings.Description
</p>
</div>
</div>
</section>
<partial name="_WidgetsProfile" />
}

@if (!string.IsNullOrWhiteSpace(BlogConfig.GeneralSettings.SideBarCustomizedHtmlPitch))
Expand Down
18 changes: 18 additions & 0 deletions src/Moonglade.Web/Pages/Shared/_WidgetsProfile.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<section class="blog-info-desktop-lg text-light d-none d-lg-block">
<div class="card-bkimg-container">
<img class="card-bkimg" alt="" src="@BlogConfig.GeneralSettings.AvatarUrl" />
</div>
<div class="blog-info-photo-text text-center">
<img src="@BlogConfig.GeneralSettings.AvatarUrl"
alt="@BlogConfig.GeneralSettings.OwnerName"
class="rounded-circle blogger-head-pic" />
<div>
<h3 class="mt-3 text-white font-sairas">
@BlogConfig.GeneralSettings.OwnerName
</h3>
<p class="me-3 ms-3">
@BlogConfig.GeneralSettings.Description
</p>
</div>
</div>
</section>

0 comments on commit bee6cea

Please sign in to comment.