mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Restore index menu url default lost in b85e51d6
.
The url for the menu item referring to the index (i.e. site root page) should use {[project-url-root]}. This allows the url to be set to different values depending on the location of the index.
This commit is contained in:
parent
a4561dc087
commit
bc7b42e718
@ -135,9 +135,13 @@ sub process
|
||||
{
|
||||
my $oRenderOut = $self->{oManifest}->renderOutGet(RENDER_TYPE_HTML, $strRenderOutKey);
|
||||
|
||||
$oMenuBody->
|
||||
addNew(HTML_DIV, 'menu')->
|
||||
addNew(HTML_A, 'menu-link', {strContent => $$oRenderOut{menu}, strRef => "${strRenderOutKey}.html"});
|
||||
if (defined($$oRenderOut{menu}))
|
||||
{
|
||||
$oMenuBody->addNew(HTML_DIV, 'menu')->addNew(
|
||||
HTML_A, 'menu-link',
|
||||
{strContent => $$oRenderOut{menu},
|
||||
strRef => $strRenderOutKey eq 'index' ? '{[project-url-root]}' : "${strRenderOutKey}.html"});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -203,6 +203,10 @@
|
||||
<release-item>
|
||||
<p>Add <setting>--out-preserve</setting> to preserve contents of output path.</p>
|
||||
</release-item>
|
||||
|
||||
<release-item>
|
||||
<p>Restore index menu url default lost in b85e51d6.</p>
|
||||
</release-item>
|
||||
</release-development-list>
|
||||
</release-doc-list>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user