File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@inject HttpClient _http
22@inject IStringLocalizer <Resource > _localizer
3-
3+ <style >
4+ .bf-test { color : red !important }
5+ </style >
46<div class =" d-flex" >
57 @if (PostCategories != null )
68 {
1416 </div >
1517 }
1618 }
17- <input type =" text" id =" add_category_control" @bind =" Tag" @onkeyup =" KeyPressed" name =" tagItem" placeholder =" @_localizer[" add-category " ]" />
19+ <input type =" text" id =" add_category_control" class = " bf-test " @bind =" Tag" @onkeyup =" KeyPressed" name =" tagItem" placeholder =" @_localizer[" add-category " ]" />
1820</div >
1921
2022@code {
Original file line number Diff line number Diff line change 136136 Post .PostType = _stateprovider .PostType ;
137137
138138 Post .Cover = await _jsruntime .InvokeAsync <string >(" commonJsFunctions.getSrcValue" , " postCover" );
139+ Post .Cover = Post .Cover .Replace (_navigation .BaseUri , " " );
139140
140141 if (string .IsNullOrEmpty (Post .Cover ))
141142 Post .Cover = Constants .DefaultCover ;
Original file line number Diff line number Diff line change 1313 <article class =" post" >
1414
1515 <figure class =" post-cover" >
16- <img class =" post-cover-img" src =" @cover" alt =" @post.Title" >
16+ <img class =" post-cover-img" src =" ~/ @cover" alt =" @post.Title" >
1717 </figure >
1818
1919 <header class =" post-header post-container" >
Original file line number Diff line number Diff line change 1414 <article class =" post" >
1515
1616 <figure class =" post-cover" >
17- <img class =" post-cover-img" src =" @cover" alt =" @post.Title" aria-hidden =" true" >
17+ <img class =" post-cover-img" src =" ~/ @cover" alt =" @post.Title" aria-hidden =" true" >
1818 </figure >
1919
2020 <header class =" post-header post-container" >
Original file line number Diff line number Diff line change 1+ @using Blogifier .Shared .Resources
2+ @using Blogifier .Shared
3+ @using Microsoft .Extensions .Localization
4+ @inject IStringLocalizer <Resource > _localizer
15@{
2- Layout = " layouts/_main.cshtml" ;
6+ Layout = " layouts/_main.cshtml" ;
7+ ListModel listModel = (ListModel )Model ;
38}
49
510<main class =" container search" >
914 </form >
1015 <h1 class =" search-title" >Search Results</h1 >
1116
12- <div class =" row mb-3" >
13- <div class =" col-4" >
14- <img src =" IMAGE" alt =" TITLE" >
15- </div >
16- <div class =" col-8" >
17- <a href =" URL" >TITLE</a >
18- <p >DESCRIPTION</p >
19- </div >
20- </div >
17+ @if (listModel .Posts .Count () > 0 )
18+ {
19+ @foreach ( var post in listModel .Posts )
20+ {
21+ <div class =" row mb-3" >
22+ <div class =" col-4" >
23+ <img src =" ~/@post.Cover" alt =" @post.Title" >
24+ </div >
25+ <div class =" col-8" >
26+ <a href =" ~/posts/@post.Slug" >@post.Title </a >
27+ <p >@post.Description </p >
28+ </div >
29+ </div >
30+ }
31+ }
2132
2233</main >
Original file line number Diff line number Diff line change 1- @using Blogifier .Shared
1+ @using Blogifier .Shared
22@using Blogifier .Shared .Resources
33@using Microsoft .Extensions .Localization
44@inject IStringLocalizer <Resource > _localizer
1111
1212 @* TODO: Customfield *@
1313 var siteMark = " titleDesc" ;
14- var siteLogo = " / themes/standard/img/logo-black.png" ;
14+ var siteLogo = " themes/standard/img/logo-black.png" ;
1515}
1616
1717<header class =" header" >
2020 @if (siteMark == " logo" )
2121 {
2222 <a class =" header-logo" href =" @absoluteUrl" >
23- <img class =" header-logo-img" src =" @siteLogo" alt =" @siteTitle @_localizer[" logo " ]" >
23+ <img class =" header-logo-img" src =" ~/ @siteLogo" alt =" @siteTitle @_localizer[" logo " ]" >
2424 </a >
2525 }
2626 else if (siteMark == " title" )
Original file line number Diff line number Diff line change 1717 <section class =" col-lg-7" >
1818 <figure class =" featured-cover" aria-hidden =" true" >
1919 <a href =" ~/posts/@item.Slug" class =" featured-cover-link" tabindex =" -1" >
20- <img class =" featured-cover-img" alt =" POST_TITLE" src =" @item.Cover" >
20+ <img class =" featured-cover-img" alt =" POST_TITLE" src =" ~/ @item.Cover" >
2121 </a >
2222 <figcaption class =" visually-hidden" >@item.Title </figcaption >
2323 </figure >
Original file line number Diff line number Diff line change 3535 <div class =" col-12 col-md mb-4 mb-md-0" >
3636 <article class =" post-grid d-flex flex-column" >
3737 <figure class =" post-grid-cover" aria-hidden =" true" >
38- <img class =" post-grid-img" src =" @post.Cover" alt =" @post.Title" >
38+ <img class =" post-grid-img" src =" ~/ @post.Cover" alt =" @post.Title" >
3939 </figure >
4040 @if (post .Categories != null )
4141 {
Original file line number Diff line number Diff line change 1616 <div class =" col" >
1717 <article class =" post-grid d-flex flex-column" >
1818 <figure class =" post-grid-cover" >
19- <img class =" post-grid-img" src =" @post.Cover" alt =" @post.Title" >
19+ <img class =" post-grid-img" src =" ~/ @post.Cover" alt =" @post.Title" >
2020 </figure >
2121 @if (post .Categories != null )
2222 {
You can’t perform that action at this time.
0 commit comments