rss + sitemap
This commit is contained in:
		@@ -27,6 +27,9 @@ export function slugify(s: string): string {
 | 
			
		||||
// resolve /a/b/c to ../../
 | 
			
		||||
export function resolveToRoot(slug: string): string {
 | 
			
		||||
  let fp = trimPathSuffix(slug)
 | 
			
		||||
  if (fp.endsWith("index")) {
 | 
			
		||||
    fp = fp.slice(0, -"index".length)
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (fp === "") {
 | 
			
		||||
    return "."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user