post : Article dans le gadget Blog (V1) - Blogger XML Documentation

Blogger - post [Blog GV1]
Gadget Version 1 Gadget Version 2 Balisage
Blog Aucun gadget
Original
Description de l'inclusion
post est le nom d'une inclusion du modèle par défaut de gadget version 1 dans le gadget Blog.
L'inclusion affiche l'article et tous ses composants (titre, auteur, date, etc...).
Directives d'usage et niveau de priorité de mise à jour
Thème Version 1
Garantie d'usage : Oui
Priorité faible
Thème Version 2
Garantie d'usage : Oui
Priorité moyenne
Thème Dynamique
Garantie d'usage : Rendu désactivé
Aucune priorité
Thème Version 3
Garantie d'usage : Aucune
Aucune priorité
Inclusion homonyme gadget version 2
post


Contenu de l'inclusion

Le code XML

<b:includable id='post' var='post'>
  <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
    <b:if cond='data:post.firstImageUrl'>
      <meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>
    </b:if>
    <meta expr:content='data:blog.blogId' itemprop='blogId'/>
    <meta expr:content='data:post.id' itemprop='postId'/>

    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
      <h3 class='post-title entry-title' itemprop='name'>
      <b:if cond='data:post.link or (data:post.url and data:blog.url != data:post.url)'>
        <a expr:href='data:post.link ? data:post.link : data:post.url'><data:post.title/></a>
      <b:else/>
        <data:post.title/>
      </b:if>
      </h3>
    </b:if>

    <div class='post-header'>
    <div class='post-header-line-1'/>
    </div>

    <!-- Then use the post body as the schema.org description, for good G+/FB snippeting. -->
    <div class='post-body entry-content' expr:id='"post-body-" + data:post.id' expr:itemprop='(data:blog.metaDescription ? "" : "description ") + "articleBody"'>
      <data:post.body/>
      <div style='clear: both;'/> <!-- clear for photos floats -->
    </div>

    <b:if cond='data:post.hasJumpLink'>
      <div class='jump-link'>
        <a expr:href='data:post.url + "#more"' expr:title='data:post.title'><data:post.jumpText/></a>
      </div>
    </b:if>

    <div class='post-footer'>

      <div class='post-footer-line post-footer-line-1'>
<!-- post-author -->
<span class='post-author vcard'>
  <b:if cond='data:top.showAuthor'>
    <data:top.authorLabel/>
      <b:if cond='data:post.authorProfileUrl'>
        <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
          <meta expr:content='data:post.authorProfileUrl' itemprop='url'/>
          <a class='g-profile' expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
            <span itemprop='name'><data:post.author/></span>
          </a>
        </span>
      <b:else/>
        <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
          <span itemprop='name'><data:post.author/></span>
        </span>
      </b:if>
  </b:if>
</span>

<!-- post-timestamp -->
<span class='post-timestamp'>
  <b:if cond='data:top.showTimestamp'>
    <data:top.timestampLabel/>
    <b:if cond='data:post.url'>
      <meta expr:content='data:post.url.canonical' itemprop='url'/>
      <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><data:post.timestamp/></abbr></a>
    </b:if>
  </b:if>
</span>

<!-- post-comment-link -->
<span class='post-comment-link'>
  <b:include cond='data:blog.pageType not in {"item","static_page"} and data:post.allowComments' data='post' name='comment_count_picker'/>
</span>

<!-- post-icons (email post links) -->
<span class='post-icons'>
  <b:if cond='data:post.emailPostUrl'>
    <span class='item-action'>
    <a expr:href='data:post.emailPostUrl' expr:title='data:top.emailPostMsg'>
      <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/>
    </a>
    </span>
  </b:if>

  <!-- quickedit pencil -->
  <b:include data='post' name='postQuickEdit'/>
</span>

<!-- post-share-buttons -->
<div class='post-share-buttons goog-inline-block'>
  <b:include cond='data:post.sharePostUrl' data='post' name='shareButtons'/>
</div>

      </div>

      <div class='post-footer-line post-footer-line-2'>

<!-- post-labels -->
<span class='post-labels'>
  <b:if cond='data:top.showPostLabels and data:post.labels'>
    <data:postLabelsLabel/>
    <b:loop values='data:post.labels' var='label'>
      <a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='not data:label.isLast'>,</b:if>
    </b:loop>
  </b:if>
</span>

      </div>

      <div class='post-footer-line post-footer-line-3'>

<!-- post-location -->
<span class='post-location'>
  <b:if cond='data:top.showLocation and data:post.location'>
    <data:postLocationLabel/>
    <a expr:href='data:post.location.mapsUrl' target='_blank'><data:post.location.name/></a>
  </b:if>
</span>

      </div>

<!-- author-profile -->
<b:if cond='data:post.authorAboutMe'>
  <div class='author-profile' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
    <b:if cond='data:post.authorPhoto.url'>
      <img expr:src='data:post.authorPhoto.url' itemprop='image' width='50px'/>
    </b:if>
    <div>
      <a class='g-profile' expr:href='data:post.authorProfileUrl' itemprop='url' rel='author' title='author profile'>
        <span itemprop='name'><data:post.author/></span>
      </a>
    </div>
    <span itemprop='description'><data:post.authorAboutMe/></span>
  </div>
</b:if>

    </div>
  </div>
</b:includable>

Les nœuds parents

ID Inclusion Balisage
main
Original


Spotlight

Populaires cette semaine