summaryrefslogtreecommitdiff
path: root/templates/post_thread.html
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-17 15:24:39 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-17 15:24:39 +1100
commit6d82894b825549f6c72ae98ef0d86462646d816e (patch)
treee6d9f071492f2c4428569d6f64c1edefe6bffe94 /templates/post_thread.html
parentb2f083be306b604dc213ae35539119de1abc53fb (diff)
...
Diffstat (limited to 'templates/post_thread.html')
-rw-r--r--templates/post_thread.html17
1 files changed, 10 insertions, 7 deletions
diff --git a/templates/post_thread.html b/templates/post_thread.html
index 604b76e7..5ed44618 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -2,7 +2,7 @@
{# tabs and new lines will be ignored #}
{% if index %}
- <div id="thread_{{ post.id }}" itemscope itemid="/{{ board.uri }}/{{ post.id }}">
+ <div id="thread_{{ post.id }}" itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/Article">
{% endif %}
{% if post.embed %}
@@ -47,12 +47,12 @@
{{ config.uri_thumb }}{{ post.thumb }}
{% endif %}" style="width:{{ post.thumbx }}px;height:{{ post.thumby }}px" alt="" /></a>
{% endif %}
-<div class="post op"{% if not index %} itemscope itemid="/{{ board.uri }}/{{ post.id }}"{% endif %}><p class="intro"{% if not index %} id="{{ post.id }}"{% endif %}>
+<div class="post op"{% if not index %} itemscope itemid="/{{ board.uri }}/{{ post.id }}" itemtype="http://schema.org/Article"{% endif %}><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 itemprop="title" class="subject">{{ post.subject }}</span>
+ <span itemprop="name" class="subject">{{ post.subject }}</span>
{% endif %}
{% if post.email|length > 0 %}
{# start email #}
@@ -73,12 +73,12 @@
{% if post.mod and post.mod|hasPermission(config.mod.show_ip, board.uri) %}
[<a style="margin:0;" href="?/IP/{{ post.ip }}">{{ post.ip }}</a>]
{% endif %}
- {{ post.time|date(config.post_date) }}
+ <time itemprop="dateCreated" datetime="{{ post.time|date('c') }}" pubdate>{{ post.time|date(config.post_date) }}</time>
</label>
{% if config.poster_ids %}
ID: {{ post.ip|poster_id(post.id) }}
{% endif %}
- <a class="post_no" href="{{ post.link }}">No.</a>
+ <a itemprop="url" class="post_no" href="{{ post.link }}">No.</a>
<a class="post_no"
{% if not index %}
onclick="citeReply({{ post.id }});"
@@ -100,11 +100,11 @@
<img class="icon" title="Bumplocked" src="{{ config.image_bumplocked }}" alt="Locked" />
{% endif %}
{% if index %}
- <a itemprop="url" href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a>
+ <a itemprop="discussionUrl" href="{{ post.root }}{{ board.dir }}{{ config.dir.res }}{{ config.file_page|sprintf(post.id) }}">[{% trans %}Reply{% endtrans %}]</a>
{% endif %}
{{ post.postControls }}
</p>
- <p itemprop="text" class="body">
+ <p itemprop="articleBody" class="body">
{% endfilter %}{% if index %}{{ post.body|truncate_body(post.link) }}{% else %}{{ post.body }}{% endif %}{% filter remove_whitespace %}
</p>
{% if post.omitted or post.omitted_images %}
@@ -128,6 +128,9 @@
{% endif %} omitted. Click reply to view.
</span>
{% endif %}
+{% if not index %}
+<meta itemprop="interactionCount" content="UserComments:{{ post.posts|count }}" />
+{% endif %}
</div>{% endfilter %}
{% set hr = post.hr %}
{% for post in post.posts %}