How to host a static site at Codeberg Pages? #940
-
Hi, I'm experiencing something odd when generating a static version of a Yellow site with the Generate extension. When there is only one page in a folder, an For example, the files that are generated by default with the Blog extension are:
When I run
Here's a freshly set-up example site. You can see the Yellow install directory on the "main" branch and the generated static site files on the "pages" branch. If you go to the blog index page and try to click on the first blog post, the browser will try to download the HTML file. However, renaming the file to have an At first I thought it was a problem with the customized theme files I was using, or some setting I had changed, but it happens even with the default Stockholm theme and a fresh, updated install. No errors show up in the website log or when running the generate command in debug mode.
Can anyone else replicate this? What other information would help diagnose the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think this is a similar problem to the one discussed in the context of #367. Codberg pages apparently doesn't recognize the correct mimetype of sub-pages, thus sending them as |
Beta Was this translation helpful? Give feedback.
I think this is a similar problem to the one discussed in the context of #367. Codberg pages apparently doesn't recognize the correct mimetype of sub-pages, thus sending them as
application/octed-stream
in this case. I suggest to check their pages documentation and find out if you can modify the default mimetype for specific folders (e.g. everything under/content
should be treated as text/html).