Show broken links in red, external link with an arrow. fixes #395

This commit is contained in:
Stéphane Goetz
2016-08-16 23:25:06 +02:00
parent 2644a7881c
commit 8ac4137007
11 changed files with 53 additions and 16 deletions

View File

@ -110,7 +110,7 @@ class Builder
}
$uri = static::removeSortingInformations($name);
if ($config['mode'] === Daux::STATIC_MODE) {
if ($config->isStatic()) {
$uri .= '.html';
}
@ -184,7 +184,7 @@ class Builder
if (!$raw) {
$title = static::getName($path);
$uri = DauxHelper::slug($title);
if ($parent->getConfig()['mode'] === Daux::STATIC_MODE) {
if ($parent->getConfig()->isStatic()) {
$uri .= '.html';
}
}