function externalFilenameForFile(file, request) {
    var hostname = typeof(request) !== 'undefined' ? request.headers.host : '';

    var retVal = hostname.length ? ('http://' + hostname) : '';
    retVal += file.at(0) === '/' && hostname.length > 0 ? '' : '/';
    retVal += file.replace('.md', '').replace(postsRoot, '').replace(postsRoot.replace('./', ''), '');
    return retVal;
}
// not specified. Absolute if request is specified.
not specified. Absolute if request is specified.
not specified . Absolute if request is specified .
function externalFilenameForFile(file, request) {
    var hostname = typeof(request) !== 'undefined' ? request.headers.host : '';
    var retVal = hostname.length ? ('http://' + hostname) : '';
    retVal += file.at(0) === '/' && hostname.length > 0 ? '' : '/';
    retVal += file.replace('.md', '').replace(postsRoot, '').replace(postsRoot.replace('./', ''), '');
    return retVal;
}
function externalFilenameForFile ( file , request ) { var hostname = typeof ( request ) !== 'undefined' ? request . headers . host : '' ; var retVal = hostname . length ? ( 'http://' + hostname ) : '' ; retVal += file . at ( 0 ) === '/' && hostname . length > 0 ? '' : '/' ; retVal += file . replace ( '.md' , '' ) . replace ( postsRoot , '' ) . replace ( postsRoot . replace ( './' , '' ) , '' ) ; return retVal ; }
not specified.
not specified .