Add page publication history and reusable blocks
This commit is contained in:
@@ -44,7 +44,9 @@ final class PageTemplates
|
||||
foreach ($template['sections'] as [$anchor, $title, $style, $body, $feed]) {
|
||||
$sections[] = ['key' => $anchor, 'title' => $title, 'style' => $style, 'body' => Html::sanitize($body, $anchor),
|
||||
'lead' => '', 'feed' => $feed, 'alignments' => '{}', 'version' => 0];
|
||||
$quicklinks[] = ['#' . $anchor, $title];
|
||||
if ($title !== '') {
|
||||
$quicklinks[] = ['#' . $anchor, $title];
|
||||
}
|
||||
}
|
||||
|
||||
return array_replace($template, [
|
||||
|
||||
Reference in New Issue
Block a user