Giter Site home page Giter Site logo

Comments (7)

wayou avatar wayou commented on June 18, 2024 9

This's actually a regression caused by commit 4103a75.

By enabling the compression can quickly avoid this problem:

server:
  compress: true

from hexo-server.

NoahDragon avatar NoahDragon commented on June 18, 2024

Hmmm, definitely an issue. But is it the rendering issue or the server issue?

hexojs/hexo#2171

from hexo-server.

yangg avatar yangg commented on June 18, 2024

It renders correct after deploy, so I file the issue here.

from hexo-server.

tanchao90 avatar tanchao90 commented on June 18, 2024

mark 遇到同样的问题,好疑惑

from hexo-server.

DMXL avatar DMXL commented on June 18, 2024

Sometimes the 'over-flooded' Chinese characters just get cut out, instead of being replaced by random symbols.

from hexo-server.

resettingmq avatar resettingmq commented on June 18, 2024

Still got the same result on hexo: 3.3.1 when rendered in the localhost, but it's rendered correctly on github.

It seems that the response is corrupt. The end of response body seems to be truncated and mixed up with some, e.g.:

 <script type="text/javascript" src="/ "undefined" && _ctx.name !== null) ? ((typeof _ctx.name !== "undefined" && _ctx.name !== null) ? _ctx.name : "") : ((typeof name !== "undefined" && name !== null) ? name : "")) !== null ? ((t

It should be something like:

<script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>

instead.

from hexo-server.

mcfatealan avatar mcfatealan commented on June 18, 2024

The solution of @wayou is actually correct. But the description seems inconsistent with code? disabling or enabling?

from hexo-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.