Skip to content

Commit

Permalink
fix featured
Browse files Browse the repository at this point in the history
  • Loading branch information
dorthl committed Aug 7, 2023
1 parent dd21d72 commit ece95c1
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/Blogifier.Shared/BlogifierSharedConstant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public static class BlogifierSharedConstant
{
public const string PolicyAdminName = "Administrator";
public static readonly string PolicyAdminValue = $"{((int)UserType.Administrator)}";
public static readonly string DefaultAvatar = "img/avatar.webp";
public static readonly string DefaultAvatar = "/img/avatar.jpg";
public static readonly string DefaultCover = "img/cover.jpg";
public static readonly string DefaultLogo = "img/logo-sm.png";
public static readonly JsonSerializerOptions DefaultJsonSerializerOptions = new(JsonSerializerDefaults.Web);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<h1 class="post-title">@Model.PostSlug.Post.Title</h1>
<div class="post-meta d-flex align-items-center">
<div class="post-meta-item post-meta-author">
<img class="post-meta-author-img d-none d-md-block" width="32" height="32" src="~/@UserHelper.CheckGetAvatarUrl(Model.PostSlug.Post.User.Avatar)"
<img class="post-meta-author-img d-none d-md-block" width="32" height="32" src="@UserHelper.CheckGetAvatarUrl(Model.PostSlug.Post.User.Avatar)"
alt="@Model.PostSlug.Post.User.NickName" aria-hidden="true" />
<div class="post-meta-author-details">
<span class="post-meta-label">@_localizer["author"]</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<section class="post-author d-md-flex align-items-md-center text-center text-md-start">
<figure class="post-author-cover mb-3 mb-md-0">
<img class="post-author-img" width="96" height="96" src="~/@UserHelper.CheckGetAvatarUrl(Model.PostSlug.Post.User.Avatar)" alt="@Model.PostSlug.Post.User.NickName" />
<img class="post-author-img" width="96" height="96" src="@UserHelper.CheckGetAvatarUrl(Model.PostSlug.Post.User.Avatar)" alt="@Model.PostSlug.Post.User.NickName" />
</figure>
<div class="post-author-details">
<h5 class="post-author-name">@Model.PostSlug.Post.User.NickName</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
}
}
</div>
@* <button class="carousel-control-next featured-next d-none d-xl-block" type="button" data-bs-target="#carouselFeatured" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
<button class="carousel-control-prev featured-prev d-none d-xl-block" type="button" data-bs-target="#carouselFeatured" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>*@
</button>
<button class="carousel-control-next featured-next d-none d-xl-block" type="button" data-bs-target="#carouselFeatured" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@
<p class="post-grid-desc">@Html.Raw(post.DescriptionHtml)</p>
<div class="post-grid-meta d-flex">
<div class="post-grid-author">
<img class="post-grid-author-img" src="@post.User.Avatar" width="16" height="16"
alt="@post.User.NickName" aria-hidden="true">
<img class="post-grid-author-img" src="@UserHelper.CheckGetAvatarUrl(post.User.Avatar)" width="16" height="16" alt="@post.User.NickName" aria-hidden="true">
<span class="post-grid-author-name">@post.User.NickName</span>
</div>
<div class="post-grid-date">
Expand All @@ -60,7 +59,7 @@
<a class="post-grid-more ms-auto" href="~/post/@post.Slug" tabindex="-1">
<span>Read</span>
<svg width="16" height="16" class="bi bi-arrow-right-short">
<use xlink:href="/_content/@ThemesStandardConstant.AssemblyName/img/icon-sprites.svg#bi-calendar-event"></use>
<use xlink:href="/_content/@ThemesStandardConstant.AssemblyName/img/icon-sprites.svg#bi-arrow-right-short"></use>
</svg>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</h2>
<div class="post-list-meta d-flex">
<div class="post-list-meta-item post-list-author">
<img class="post-list-author-img" src="~/@UserHelper.CheckGetAvatarUrl(post.User.Avatar)" width="16" height="16"
<img class="post-list-author-img" src="@UserHelper.CheckGetAvatarUrl(post.User.Avatar)" width="16" height="16"
alt="@post.User.NickName">
<span class="post-list-author-name">@post.User.NickName</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="form-item">
<label class="form-label mb-1">@_localizer["profile-picture"]</label>
<div class="d-flex">
<img src="~/@UserHelper.CheckGetAvatarUrl(Model.Avatar)" width="39" height="39" class="profilePicture rounded me-3" alt="@Model.NickName" />
<img src="@UserHelper.CheckGetAvatarUrl(Model.Avatar)" width="39" height="39" class="profilePicture rounded me-3" alt="@Model.NickName" />
<button class="btn btn-link" onclick="return fileManager.uploadClick('@UploadType.Avatar');" type="button" title="@_localizer["upload"]" data-bs-toggle="tooltip">
<svg width="18" height="18" class="bi bi-arrow-up-circle">
<use xlink:href="/_content/@ThemesStandardConstant.AssemblyName/img/icon-sprites.svg#bi-arrow-up-circle"></use>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
@import "../../node_modules/bootstrap/scss/modal";
@import "../../node_modules/bootstrap/scss/tooltip";
@import "../../node_modules/bootstrap/scss/popover";
// @import "../../node_modules/bootstrap/scss/carousel";
@import "../../node_modules/bootstrap/scss/carousel";
@import "../../node_modules/bootstrap/scss/spinners";
// @import "../../node_modules/bootstrap/scss/offcanvas";

Expand Down
4 changes: 2 additions & 2 deletions src/Blogifier.Themes.Standard/assets/scss/post/_featured.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
&-cover {
margin: 0;
max-height: 100%;
min-height: 100%;
min-height: 311.375px;
overflow: hidden;
position: relative;
border-radius: $radius-var;
Expand Down Expand Up @@ -113,7 +113,7 @@
&-more {
font-weight: 500;
font-size: 0.875rem;
color: $color;
color: #555;
text-decoration: none;
&:hover {
color: #000;
Expand Down
Binary file added src/Blogifier/wwwroot/img/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Blogifier/wwwroot/img/avatar.webp
Binary file not shown.

0 comments on commit ece95c1

Please sign in to comment.