Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

only remove / from front if --base is not / #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions sitemap.ftd
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ url: whatever

-- ft.markdown:

Note: The URLs in sitemap start with slash, but we remove the first slash. We do
this because some projects may deploy FPM package on a base URL eg, `foo.com/bar/`,
so all reference to /x/ is actually a reference to `foo.com/bar/x/`. We also
convert `/` to `index.html` for the same reason.
Note: The URLs in sitemap start with slash, but we remove the first slash if
`--base` is not equal to `/`. We support `--base` because some projects may
deploy FPM package on a base URL eg, `foo.com/bar/`, so all reference to `/x/`
is actually a reference to `foo.com/bar/x/`. In this case we also convert `/`
to `index.html`.


-- ft.h1: Sitemap `$processor$`
Expand Down