code: func (s *SiteInfo) ServerPort() int {
  	ps := s.s.PathSpec.BaseURL.URL().Port()
  	if ps == "" {
  		return 0
  	}
  	p, err := strconv.Atoi(ps)
  	if err != nil {
  		return 0
  	}
  	return p
  }
docs: // ServerPort returns the port part of the BaseURL, 0 if none found.