ticker-serve: make dtstart a <time> to fix microdata

This commit is contained in:
Astro 2022-08-29 02:44:04 +02:00
parent c65819b2d6
commit 45a042b973
1 changed files with 3 additions and 3 deletions

View File

@ -109,10 +109,10 @@ fn render_index(app_state: &AppState) -> String {
} else {
html!(<span class="recurrence">" "</span>)
} }
<span class="dtstart" itemprop="startDate"
title=( format!("{}", Local.from_local_datetime(&e.dtstart).unwrap().format("%Y-%m-%dT%H:%M:%S%:z")) )>
<time class="dtstart" itemprop="startDate"
datetime=( format!("{}", Local.from_local_datetime(&e.dtstart).unwrap().format("%Y-%m-%dT%H:%M:%S%:z")) )>
{ text!("{}", &e.dtstart.format("%H:%M")) }
</span>
</time>
</p>
{ match &e.url {
None => html!(