update ikiwiki plugins
parent
8b0c384228
commit
98ccf7aa3d
|
@ -44,10 +44,11 @@ sub pagetemplate (@) {
|
||||||
my @contents;
|
my @contents;
|
||||||
for (@pages) {
|
for (@pages) {
|
||||||
if ($pagesources{$_}) {
|
if ($pagesources{$_}) {
|
||||||
|
my $title = $pagestate{$_}{meta}{title};
|
||||||
push @contents, {
|
push @contents, {
|
||||||
content => IkiWiki::get_inline_content($_, $destpage),
|
content => IkiWiki::get_inline_content($_, $destpage),
|
||||||
pageurl => urlto($_, $destpage),
|
pageurl => urlto($_, $destpage),
|
||||||
title => pagetitle(IkiWiki::basename($_)),
|
title => $title ? $title : pagetitle(IkiWiki::basename($_)),
|
||||||
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
|
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
|
||||||
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
|
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,10 +57,11 @@ sub pagetemplate (@) {
|
||||||
my @contents;
|
my @contents;
|
||||||
for (@inlinepages) {
|
for (@inlinepages) {
|
||||||
if ($pagesources{$_}) {
|
if ($pagesources{$_}) {
|
||||||
|
my $title = $pagestate{$_}{meta}{title};
|
||||||
push @contents, {
|
push @contents, {
|
||||||
content => IkiWiki::get_inline_content($_, $destpage),
|
content => IkiWiki::get_inline_content($_, $destpage),
|
||||||
pageurl => urlto($_, $destpage),
|
pageurl => urlto($_, $destpage),
|
||||||
title => pagetitle(IkiWiki::basename($_)),
|
title => $title ? $title : pagetitle(IkiWiki::basename($_)),
|
||||||
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
|
ctime => displaytime($IkiWiki::pagectime{$_}, $params{timeformat}, 1),
|
||||||
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
|
mtime => displaytime($IkiWiki::pagemtime{$_}, $params{timeformat})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue