ASP Classic blog framework - BrainOrdure
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 строки
892B

  1. <article class="card shadow-sm">
  2. <div class="card-body">
  3. <div class="mb-3">
  4. <a href="/posts" class="small text-decoration-none">&larr; Back to posts</a>
  5. </div>
  6. <h1 class="h2 mb-2"><%= H(post.Title) %></h1>
  7. <%
  8. Dim publishedText
  9. publishedText = ""
  10. If IsDate(post.PublishedDate) Then
  11. If CDate(post.PublishedDate) > #1/1/1970# Then
  12. publishedText = FormatDateTime(post.PublishedDate, vbLongDate)
  13. End If
  14. End If
  15. If Len(publishedText) > 0 Then
  16. %>
  17. <p class="text-muted"><%= H(publishedText) %></p>
  18. <%
  19. End If
  20. Dim postBody
  21. postBody = H(post.Body)
  22. postBody = Replace(postBody, vbCrLf, "<br>")
  23. postBody = Replace(postBody, vbCr, "<br>")
  24. postBody = Replace(postBody, vbLf, "<br>")
  25. %>
  26. <div class="fs-5 lh-lg"><%= postBody %></div>
  27. </div>
  28. </article>

Powered by TurnKey Linux.