hexojs / hexo

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

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

Closed heyanming closed 8 months ago

heyanming commented 8 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