code: function createUrl(urlPath, absolute, secure, trailingSlash) {
      urlPath = urlPath || '/';
      absolute = absolute || false;
      var base;
  
      // create base of url, always ends without a slash
      if (absolute) {
          base = getBlogUrl(secure);
      } else {
          base = getSubdir();
      }
  
      if (trailingSlash) {
          if (!urlPath.match(/\/$/)) {
              urlPath += '/';
          }
      }
  
      return urlJoin(base, urlPath);
  }
docs: ## createUrl Simple url creation from a given path Ensures that our urls contain the subdirectory if there is one And are correctly formatted as either relative or absolute Usage: createUrl('/', true) -> http://my-ghost-blog.com/ E.g. /blog/ subdir createUrl('/welcome-to-ghost/') -> /blog/welcome-to-ghost/ Parameters: - urlPath - string which must start and end with a slash - absolute (optional, default:false) - boolean whether or not the url should be absolute - secure (optional, default:false) - boolean whether or not to force SSL Returns: - a URL which always ends with a slash