Skip to content
Snippets Groups Projects
Commit 8b0d4427 authored by Olivia206's avatar Olivia206
Browse files

fixed events schema

parent c0083714
No related merge requests found
......@@ -3,7 +3,7 @@
{{- $title := .block.title -}}
{{- with .block.data }}
<div itemscope itemtype="http://schema.org/Blog" class="block block-agenda{{ if $title }} block-with-title{{ end }}">
<div class="block block-agenda{{ if $title }} block-with-title{{ end }}">
<div class="container">
<div class="block-content">
{{ if or $title .description }}
......@@ -21,16 +21,16 @@
<div class="events">
{{ range .elements }}
<article class="event" itemprop="events" itemscope itemtype="https://schema.org/Event">
<article class="event" itemscope itemtype="https://schema.org/Event">
{{ if .data.image }}
{{- $direction = partial "GetImageDirection" .data.image -}}
{{ end }}
<div class="event-content">
{{- $title := partial "PrepareHTML" .title -}}
<h3><a href="{{ .url }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a></h3>
<h3><a href="{{ .url }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}" itemprop="name">{{ $title }}</a></h3>
{{ if site.Params.events.index.show_description }}
{{- if (partial "GetTextFromHTML" .summary) -}}
<p itemprop="articleBody">
<p itemprop="description">
{{ if site.Params.events.index.truncate_description }}
{{ partial "GetTruncateContent" ( dict
"text" .summary
......
......@@ -14,17 +14,17 @@
{{- $direction = partial "GetImageDirection" .Params.image -}}
{{ end }}
<article class='event {{ if $alternate }}{{ $direction }} {{if not (modBool $index 2)}}left{{ else}}right{{end}}{{end}}' itemprop="events" itemscope itemtype="https://schema.org/Event">
<article class="event" itemscope itemtype="https://schema.org/Event">
<div class="event-content">
{{- $title := partial "PrepareHTML" .Title -}}
{{ $heading_tag.open }}
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}">{{ $title }}</a>
<a href="{{ .Permalink }}" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}" itemprop="name">{{ $title }}</a>
{{ $heading_tag.close }}
{{ if site.Params.events.index.show_description }}
{{- if (partial "GetTextFromHTML" .Params.summary) -}}
<p itemprop="articleBody">
<p itemprop="description">
{{ if site.Params.events.index.truncate_description }}
{{ partial "GetTruncateContent" ( dict
"text" .Params.summary
......
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