pkgdown icon indicating copy to clipboard operation
pkgdown copied to clipboard

Add support for pretty URLs (hide .html extension)

Open rempsyc opened this issue 1 year ago • 1 comments

Hugo uses pretty URLs per default, and thus hides the .html extensions. Does pkgdown have any documented way to do this? If not, is that a feature you would consider implementing?

I tried adding permalink: pretty to the _pkgdown.yml file (based on this StackOverflow answer), but it didn't work. I hope I haven't missed an obvious way to do this.

rempsyc avatar Jul 27 '22 17:07 rempsyc

Just keeping track of the equivalent Quarto issue https://github.com/quarto-dev/quarto-cli/issues/2065 in case imitation is possible :smile_cat:

maelle avatar Aug 23 '22 15:08 maelle

We haven't made any progress on this in almost two years, and because it's going to require a bunch of work (since it will affect just about every internal link we generate) and has a relatively small payoff, I'm closing this issue in recognition it's unlikely to ever rise to the top of our to do list. Even though I'm closing this issue, I really appreciate the feedback, and hope you'll continue to contribute in the future 😄

hadley avatar Apr 11 '24 21:04 hadley