summaryrefslogtreecommitdiffstats
path: root/templates/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-18 03:47:33 +0200
committerDan McGee <dan@archlinux.org>2012-09-18 03:47:33 +0200
commit6c8413172506b5cce4f39e17f09803efea753be7 (patch)
tree01337bf8ae3bf86a8cbae6b91c380b146db7a3e1 /templates/news
parent10f5c27bf8124a3ccffb94930283b5062ad96cce (diff)
downloadarchweb-6c8413172506b5cce4f39e17f09803efea753be7.tar.gz
archweb-6c8413172506b5cce4f39e17f09803efea753be7.tar.xz
More structured data markup for news articles
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news')
-rw-r--r--templates/news/view.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/news/view.html b/templates/news/view.html
index 8a4d812..445f039 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -4,12 +4,12 @@
{% block content %}
<div itemscope itemtype="http://schema.org/Article" class="news-article box">
-
<h2 itemprop="headline">{{ news.title }}</h2>
<meta itemprop="dateCreated" content="{{ news.postdate|date:"Y-m-d" }}"/>
<meta itemprop="datePublished" content="{{ news.postdate|date:"Y-m-d" }}"/>
<meta itemprop="dateModified" content="{{ news.last_modified|date:"Y-m-d" }}"/>
<meta itemprop="inLanguage" content="en"/>
+ <meta itemprop="wordCount" content="{{ news.content|wordcount }}"/>
<div style="display:none" itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="{{ news.author.get_full_name|escape }}"/>
</div>
@@ -28,7 +28,6 @@
<p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>
- <div class="article-content">{{ news.content|markdown }}</div>
-
+ <div class="article-content" itemprop="articleBody">{{ news.content|markdown }}</div>
</div>
{% endblock %}