This commit is contained in:
Savetheinternet 2011-11-17 15:47:42 +11:00
parent 87aa7d71ec
commit 629e3ec547

View File

@ -2,7 +2,7 @@
{# tabs and new lines will be ignored #} {# tabs and new lines will be ignored #}
{% if index %} {% if index %}
<div id="thread_{{ post.id }}" itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/Article"> <div id="thread_{{ post.id }}" itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/CreativeWork">
{% endif %} {% endif %}
{% if post.embed %} {% if post.embed %}
@ -104,7 +104,7 @@
{% endif %} {% endif %}
{{ post.postControls }} {{ post.postControls }}
</p> </p>
<p itemprop="articleBody" class="body"> <p itemprop="description" class="body">
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %} {% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
</p> </p>
{% if post.omitted or post.omitted_images %} {% if post.omitted or post.omitted_images %}
@ -128,7 +128,7 @@
{% endif %} omitted. Click reply to view. {% endif %} omitted. Click reply to view.
</span> </span>
{% endif %} {% endif %}
<meta itemprop="articleSection" content="{{ board.uri }}" /> <meta itemprop="genre" content="/{{ board.uri }}/" />
{% if not index %} {% if not index %}
<meta itemprop="interactionCount" content="UserComments:{{ post.posts|count }}" /> <meta itemprop="interactionCount" content="UserComments:{{ post.posts|count }}" />
{% endif %} {% endif %}