Replies: 1 comment 4 replies
-
The only other option is to use aliases, see https://quarto.org/docs/websites/website-navigation.html#redirects.
Wanting |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I was wondering what is the recommended way to render subpages in a Quarto website to directory URLs like
mywebsite.com/about/
andmywebsite.com/blog/my-first-post/
instead of linking to specific HTML pages (likemywebsite.com/about.html
andmywebsite.com/blog/my-first-post.html
).The Quarto tutorial suggests creating a
.qmd
page for every page on your website likeabout.qmd
. However, this results in the URLmywebsite.com/about.html
I know that you can create a directory for every subpage (like
/about/
) and then add anindex.qmd
file in that directory. That seems to work, and Quarto also automatically links to the URLs with those subdirectories for items in a listing (rather than directly to theindex.html
page in that subdirectory). However, one drawback is that almost every file in your Quarto website project is now calledindex.qmd
, making it a little tricky to differentiate them in a text editor.I'm fine with doing it this way, but I just wanted to verify if that's the recommended practice, or if there's another way of doing this, perhaps an option to never directly expose
.html
files?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions