hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
38.82k stars 4.75k forks source link

md生成的文件如果不带.html扩展名,会导致nginx中的mine.types文件配置无法匹配,会默认default_type,自有服务器可以更改成text/html,但是如果发布到github pages里面就会出现刷新页面,下载该页面的 #5446

Closed heyanming closed 3 months ago

heyanming commented 3 months ago

Check List

Expected behavior

如果生成不带扩展名的文件也能兼容github page,不会出现刷新某个文章自动下载的情况

Actual behavior

如果生成不带扩展名的文件也能兼容github page,出现刷新某个文章自动下载的情况

How to reproduce?

见下图 1711685621598

Is the problem still there under Safe mode?

11

Your Node.js & npm version

No response

Your Hexo and Plugin version

No response

Your package.json

No response

Your site's _config.yml (Optional)

No response

Others

No response