Skip to content
Snippets Groups Projects
Commit 2ae8ee4e authored by alexisben's avatar alexisben
Browse files

correct itemprop for post

parent 8a5fbed4
No related branches found
No related tags found
No related merge requests found
<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 -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment