Attempt at using HTML5 microdata

This commit is contained in:
Savetheinternet 2011-11-16 20:41:16 +11:00
parent 3733162e0a
commit 0ba885d9c1
3 changed files with 20 additions and 14 deletions

View file

@ -1,19 +1,19 @@
{% filter remove_whitespace %}
{# tabs and new lines will be ignored #}
<div class="post reply" id="reply_{{ post.id }}">
<div class="post reply" id="reply_{{ post.id }}" itemscope>
<p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
<label for="delete_{{ post.id }}">
{% if post.subject|length > 0 %}
{# show subject #}
<span class="subject">{{ post.subject }}</span>
<span itemprop="title" class="subject">{{ post.subject }}</span>
{% endif %}
{% if post.email|length > 0 %}
{# start email #}
<a class="email" href="mailto:{{ post.email }}">
<a itemprop="email" class="email" href="mailto:{{ post.email }}">
{% endif %}
<span class="name">{{ post.name }}</span>
<span itemprop="name" class="name">{{ post.name }}</span>
{% if post.trip|length > 0 %}
<span class="trip">{{ post.trip }}</span>
{% endif %}
@ -49,7 +49,7 @@
{% if post.embed %}
{{ post.embed }}
{% elseif post.file == 'deleted' %}
<img src="{{ config.image_deleted }}" alt="" />
<img itemprop="image" src="{{ config.image_deleted }}" alt="" />
{% elseif post.file and post.file %}
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ post.file }}">{{ post.file }}</a> <span class="unimportant">
(
@ -91,7 +91,7 @@
</a>
{% endif %}
{{ post.postControls }}
<p class="body">
<p itemprop="desc" class="body">
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
</p>
</div>