code: func GetDottedRelativePath(inPath string) string {
  	inPath = filepath.Clean(filepath.FromSlash(inPath))
  
  	if inPath == "." {
  		return "./"
  	}
  
  	if !isFileRe.MatchString(inPath) && !strings.HasSuffix(inPath, FilePathSeparator) {
  		inPath += FilePathSeparator
  	}
  
  	if !strings.HasPrefix(inPath, FilePathSeparator) {
  		inPath = FilePathSeparator + inPath
  	}
  
  	dir, _ := filepath.Split(inPath)
  
  	sectionCount := strings.Count(dir, FilePathSeparator)
  
  	if sectionCount == 0 || dir == FilePathSeparator {
  		return "./"
  	}
  
  	var dottedPath string
  
  	for i := 1; i < sectionCount; i++ {
  		dottedPath += "../"
  	}
  
  	return dottedPath
  }
docs: // GetDottedRelativePath expects a relative path starting after the content directory.
  // It returns a relative path with dots ("..") navigating up the path structure.