AMP HTML Featured Post Widget/Gadget for Blogger Template

AMP HTML Featured Post Widget/Gadget for Blogger Template.


<b:widget id='FeaturedPost1' locked='false' title='AMP Featured post' type='FeaturedPost' version='1' visible='true'>
            <b:includable id='main'>
  <!-- Only display title if it's non-empty -->
  <b:if cond='data:title != &quot;&quot;'>
    <h2 class='title'><data:title/></h2>
  </b:if>
  <b:include name='content'/>
</b:includable>
            <b:includable id='content'>
  <div class='post-summary'>
    <b:if cond='data:showPostTitle and data:postTitle != &quot;&quot;'>
      <h3><a expr:href='data:postUrl'><data:postTitle/></a></h3>
    </b:if>
    <b:if cond='data:showSnippet and data:postSummary != &quot;&quot;'>
      <p>
        <data:postSummary/>
      </p>
    </b:if>
    <b:if cond='data:showFirstImage and data:postFirstImage != &quot;&quot;'>
      <amp-img expr:alt='data:postTitle' expr:src='data:postFirstImage' height='240' layout='responsive' width='320'/>
    </b:if>
  </div>
</b:includable>
          </b:widget>


Related Posts
Disqus Comments
© Copyright 2017 CB AMP - All Rights Reserved | Template by CB Blogger