ticker-serve: make dtstart a <time> to fix microdata
This commit is contained in:
parent
c65819b2d6
commit
45a042b973
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue