Blog Post Summary Snippet

2 Nov 2015 5:19 PMLicensee Person

This snippet is used to generate the layout for the blog post summary in the blog list page. Create a snippet with the file name: blogpost.summary.

Sample Code

<div>
	<span class="Script" contenteditable="false" enctype="text/html" expression="IIf(IsNothing(Image), &quot;&quot;, GenerateHTMLA(RelativePath, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&lt;div class=&quot;&quot;image&quot;&quot; style=&quot;&quot;background-image: url('/&quot; &amp; HTMLAttributeEncode(ImageBasePathAndFileName) &amp; &quot;')&quot;&quot;&gt;&lt;!-- --&gt;&lt;/div&gt;&quot;))">[Image]</span>
</div>

<p><span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLAForPublishedOn()">[Published On]</span></p>

<p class="title">
	<span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLAForArticle()">[Title]</span>
</p>

<div class="description">
	<span class="Script" contenteditable="false" enctype="text/html" expression="&quot;&lt;p&gt;&quot; &amp; Replace(HtmlEncode(Description), Chr(10) &amp; Chr(13), &quot;&lt;/p&gt;&lt;p&gt;&quot;) &amp; &quot;&lt;/p&gt;&quot;">[Description]</span>
</div>

<div>
	<span class="Script" contenteditable="false" enctype="text/html" expression="GenerateHTMLA(RelativePath, &quot;&quot;, &quot;read-more&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;More&quot;)">[Read More]</span>
</div>