Advertisement
Spaskich

Untitled

Jul 8th, 2018
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.75 KB | None | 0 0
  1.         @foreach (var post in Model)
  2.         {
  3.             <div class="col-sm-6">
  4.                 <article>
  5.                     <header>
  6.                         <h2>
  7.                             <a href="/Posts/Details/@post.Id">@post.Title</a>
  8.                         </h2>
  9.                     </header>
  10.                     <p>
  11.                         @Html.Raw(BlogSystem.HelperClasses.TextUtils.TextExcerpt(post.Body, 500))
  12.                     </p>
  13.                     <footer class="pull-right">
  14.                         <small class="author">
  15.                             @Html.DisplayFor(modelItem => post.Author.FullName)
  16.                         </small>
  17.                     </footer>
  18.                 </article>
  19.             </div>
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement