rss + sitemap
This commit is contained in:
parent
ba9f243728
commit
4c904d88ab
11 changed files with 131 additions and 491 deletions
|
@ -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 "."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue