Skip to content

Instantly share code, notes, and snippets.

@willpower42
Created May 4, 2013 14:09
Show Gist options
  • Save willpower42/5517609 to your computer and use it in GitHub Desktop.
Save willpower42/5517609 to your computer and use it in GitHub Desktop.
Exemplo do uma lista de 'últimos eventos' usando schema/microdata
<section class="agenda">
<h2 class="tit"><span class="t">Agenda</span></h2>
<ul class="list">
<li class="li opn" itemprop="event" itemscope itemtype="http://schema.org/Event">
<div class="bnr-item-home"><img itemprop="img" src="img/agenda-destaque.jpg" alt="agenda destaque" class="img" /></div>
<!-- no content deve ser aaaa-mm-dd -->
<span class="h">
<span class="date" itemprop="startDate" content="2013-06-30">30/06/13</span>
<strong class="txt">
<span itemprop="name">Show do Fulano de Tal</span> em <span itemprop="location">Tal lugar</span>
</strong>
</span>
<a href="#" class="a">ver mais detalhes</a>
</li>
<li class="li cls" itemprop="event" itemscope itemtype="http://schema.org/Event">
<a href="#" class="a">
<!-- no content deve ser aaaa-mm-dd -->
<span class="date" itemprop="startDate" content="2013-07-30">30/07/13</span>
<strong class="txt">
<span itemprop="name">Show Tal</span> em <span itemprop="location">Tal lugar</span>
</strong>
</a>
</li>
<li class="li cls" itemprop="event" itemscope itemtype="http://schema.org/Event">
<a href="#" class="a">
<!-- no content deve ser aaaa-mm-dd -->
<span class="date" itemprop="startDate" content="2013-08-30">30/08/13</span>
<strong class="txt">
<span itemprop="name">Show Tal</span> em <span itemprop="location">Tal lugar</span>
</strong>
</a>
</li>
<li class="li more"><a href="#" class="a">veja mais eventos</a></li>
</ul>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment