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 {
|
} else {
|
||||||
html!(<span class="recurrence">" "</span>)
|
html!(<span class="recurrence">" "</span>)
|
||||||
} }
|
} }
|
||||||
<span class="dtstart" itemprop="startDate"
|
<time class="dtstart" itemprop="startDate"
|
||||||
title=( format!("{}", Local.from_local_datetime(&e.dtstart).unwrap().format("%Y-%m-%dT%H:%M:%S%:z")) )>
|
datetime=( format!("{}", Local.from_local_datetime(&e.dtstart).unwrap().format("%Y-%m-%dT%H:%M:%S%:z")) )>
|
||||||
{ text!("{}", &e.dtstart.format("%H:%M")) }
|
{ text!("{}", &e.dtstart.format("%H:%M")) }
|
||||||
</span>
|
</time>
|
||||||
</p>
|
</p>
|
||||||
{ match &e.url {
|
{ match &e.url {
|
||||||
None => html!(
|
None => html!(
|
||||||
|
|
Loading…
Reference in New Issue