Generating Links without the "/" at the end

8 views
Skip to first unread message

Daniel Habermayr

unread,
Jul 25, 2022, 4:17:46 AM7/25/22
to nikola-...@googlegroups.com
Hello everyone,


I am new to Nikola and trying to generate URLs without ".html" or "/" at
the end.

There already is a discussion (
https://groups.google.com/g/nikola-discuss/c/iKQwG7PPgfs ) asking the
same question.

However, the given solution (setting PRETTY_URLS and STRIP_INDEXES in
the config file) results in URLs ending with a "/".

Is there something else that can be done with the configurations to
generate URLS like the following?

http://mysite/foo/bar/index.html => http://mysite/foo/bar

If that is not the case, where would i have to go to write a small patch
implementing this functionality?


Thanks in advance!

Daniel

Reply all
Reply to author
Forward
0 new messages