code: func MakePermalink(host, plink string) *url.URL {
  
  	base, err := url.Parse(host)
  	if err != nil {
  		panic(err)
  	}
  
  	p, err := url.Parse(plink)
  	if err != nil {
  		panic(err)
  	}
  
  	if p.Host != "" {
  		panic(fmt.Errorf("can't make permalink from absolute link %q", plink))
  	}
  
  	base.Path = path.Join(base.Path, p.Path)
  
  	// path.Join will strip off the last /, so put it back if it was there.
  	hadTrailingSlash := (plink == "" && strings.HasSuffix(host, "/")) || strings.HasSuffix(p.Path, "/")
  	if hadTrailingSlash && !strings.HasSuffix(base.Path, "/") {
  		base.Path = base.Path + "/"
  	}
  
  	return base
  }
docs: // MakePermalink combines base URL with content path to create full URL paths.
  // Example
  //    base:   http://spf13.com/
  //    path:   post/how-i-blog
  //    result: http://spf13.com/post/how-i-blog