%
Dim postHeroBackground, postHeroClass, publishedText, readTimeText
postHeroBackground = ExtractFirstImageSrc(post.Body)
postHeroClass = "masthead masthead-post"
If Len(postHeroBackground) > 0 Then
postHeroClass = postHeroClass & " masthead-has-image"
End If
publishedText = ""
If IsDate(post.PublishedDate) Then
If CDate(post.PublishedDate) > #1/1/1970# Then
publishedText = FormatDateTime(post.PublishedDate, vbLongDate)
End If
End If
readTimeText = EstimateReadTime(post.Body)
%>
<%= H(post.Title) %>
<% If Len(publishedText) > 0 Or Len(readTimeText) > 0 Then %>
<% End If %>
No comments yet. Be the first to leave one below.
<% Else %> <% Dim commentIter, commentItem Dim commentsIterFailed commentsIterFailed = False On Error Resume Next Set commentIter = comments.Iterator() If Err.Number <> 0 Then commentsIterFailed = True Err.Clear End If Do While Not commentsIterFailed And commentIter.HasNext Set commentItem = commentIter.GetNext() If Err.Number <> 0 Then commentsIterFailed = True Err.Clear Exit Do End If Dim commentDateText commentDateText = "" If IsDate(commentItem.CreatedDate) Then commentDateText = FormatDateTime(commentItem.CreatedDate, vbLongDate) End If %>
") commentBody = Replace(commentBody, vbCr, "
") commentBody = Replace(commentBody, vbLf, "
") %>
<%= commentBody %>