diff --git a/layouts/partials/posts/post.html b/layouts/partials/posts/post.html index 53e1daafef1621ca2384df95b2a685fbfe429b4e..f9c0b489265583950d20d4b97e8e2f23e2d056dc 100644 --- a/layouts/partials/posts/post.html +++ b/layouts/partials/posts/post.html @@ -1,11 +1,11 @@ -<article class="post"> +<article class="post" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting"> <div> {{- $title := partial "PrepareHTML" .Title -}} - <h2 class="h4"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2> + <h2 class="h4" itemprop="headline"><a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h2> {{- if (partial "GetTextFromHTML" .Params.description_short) -}} - <p>{{ partial "PrepareHTML" .Params.description_short }}</p> + <p itemprop="articleBody">{{ partial "PrepareHTML" .Params.description_short }}</p> {{- end -}} - <time datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time> + <time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04" }}">{{ .Date | time.Format ":date_long" }}</time> </div> <div class="media"> {{- if .Params.image -}}