public function getUri()
    {
        if ($this->isIndex()) {
            return $this->getUriPath();
        }

        $path = $this->getUriPath().DIRECTORY_SEPARATOR.$this->getFilename();

        return trim($path, DIRECTORY_SEPARATOR);
    }
public function getUri()
    {
        if ($this->isIndex()) {
            return $this->getUriPath();
        }

        $path = $this->getUriPath().DIRECTORY_SEPARATOR.$this->getFilename();

        return trim($path, DIRECTORY_SEPARATOR);
    }
public function getUri ( ) { if ( $ this -> isIndex ( ) ) { return $ this -> getUriPath ( ) ; } $ path = $ this -> getUriPath ( ) . DIRECTORY_SEPARATOR . $ this -> getFilename ( ) ; return trim ( $ path , DIRECTORY_SEPARATOR ) ; }
URI to the content based on directory path

# Directory       | URI
------------------------------------
foo/bar/baz.md  | foo/bar/baz

Files named index.md do not use the filename in the URI:
index.md         => /
foo/index.md     => foo/
foo/bar/index.md => foo/bar/index

@return string
URI to the content based on directory path