Use xhtml friendly pubdate setting.
parent
8e50e00d25
commit
bc0aa4d40e
|
@ -1004,7 +1004,7 @@ sub displaytime ($;$$) {
|
|||
my $time=formattime($_[0], $_[1]);
|
||||
if ($config{html5}) {
|
||||
return '<time datetime="'.date_3339($_[0]).'"'.
|
||||
($_[2] ? ' pubdate' : '').
|
||||
($_[2] ? ' pubdate="pubdate"' : '').
|
||||
'>'.$time.'</time>';
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -59,7 +59,7 @@ sub mydisplaytime ($;$$) {
|
|||
|
||||
if ($config{html5}) {
|
||||
return '<time datetime="'.IkiWiki::date_3339($time).'"'.
|
||||
($pubdate ? ' pubdate' : '').$mid.'</time>';
|
||||
($pubdate ? ' pubdate="pubdate"' : '').$mid.'</time>';
|
||||
}
|
||||
else {
|
||||
return '<span'.$mid.'</span>';
|
||||
|
|
|
@ -29,6 +29,7 @@ ikiwiki (3.20100505) UNRELEASED; urgency=low
|
|||
* calendar: Allow negative month to be specified. -1 is last month, etc.
|
||||
(And also negative years.)
|
||||
* calendar: Display year in title of month calendar.
|
||||
* Use xhtml friendly pubdate setting.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Wed, 05 May 2010 18:07:29 -0400
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@ XML error:
|
|||
|
||||
The pubdate REQUIRES a date, so e.g. `pubdate="2009-03-24T18:02:14Z"`
|
||||
|
||||
> No, `pubdate="pubdate"`. It's a boolean attribute. applied && [[done]]
|
||||
> --[[Joey]]
|
||||
|
||||
Otherwise the XML parser chokes.
|
||||
|
||||
<http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#attr-time-pubdate>
|
||||
|
|
Loading…
Reference in New Issue