New features

This commit is contained in:
Diego Najar 2015-06-02 22:28:16 -03:00
parent 678eb853d7
commit 1c4962c570
3 changed files with 5 additions and 5 deletions

View File

@ -130,7 +130,7 @@ class Page extends fileContent
return $url.'/'.$tmp;
}
return $htmlPath.'/'.$tmp;
return '/'.$htmlPath.'/'.$tmp;
}
public function parentKey()

View File

@ -120,7 +120,7 @@ class Post extends fileContent
return $url.'/'.$tmp;
}
return $htmlPath.'/'.$tmp;
return '/'.$htmlPath.'/'.$tmp;
}
}

View File

@ -18,7 +18,7 @@ $parents = $pagesParents[NO_PARENT_CHAR];
foreach($parents as $parent)
{
// Print the parent
echo '<a class="parent" href="'.HTML_PATH_ROOT.$parent->key().'">'.$parent->title().'</a>';
echo '<a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a>';
// Check if the parent hash children
if(isset($pagesParents[$parent->key()]))
@ -29,7 +29,7 @@ foreach($parents as $parent)
echo '<ul>';
foreach($children as $child)
{
echo '<li><a class="children" href="'.HTML_PATH_ROOT.$child->key().'">— '.$child->title().'</a></li>';
echo '<li><a class="children" href="'.$child->permalink().'">— '.$child->title().'</a></li>';
}
echo '</ul>';
}