Code Monkey home page Code Monkey logo

Comments (5)

AmazingRise avatar AmazingRise commented on July 24, 2024

其实你可以使用

<div v-pre>
{{ Contents }}
</div>

这样可以防止 Vue.js 解析这段文本,并且不需要修改代码的其他部分。我的博客里面一些涉及到 {{ }}的代码也是这么做的。甚至你可以将整篇文章用这个包围。

另外由于 Hugo 在 Vue.js 之前被解析,所以这两者也不会产生冲突。

from hugo-theme-diary.

branchvan avatar branchvan commented on July 24, 2024

学习到了,因为不了解Vue.js,所以也没有用到这个解决办法。可以考虑对主题进行修改,或者在Wiki中进行说明,避免其他用户遇到相同的问题。

from hugo-theme-diary.

branchvan avatar branchvan commented on July 24, 2024

另外还想提一点(就不另开一个issue了),数学支持可以考虑使用KaTex,这里有MathJax和KaTex的速度对比,我打算先部署到自己的站点试一下。

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 24, 2024

另外还想提一点(就不另开一个issue了),数学支持可以考虑使用KaTex,这里有MathJax和KaTex的速度对比,我打算先部署到自己的站点试一下。

好的 感谢建议,我会看看KaTeX的速度的。至于Wiki的话,我有空添加一下。
非常感谢你的反馈!

from hugo-theme-diary.

AmazingRise avatar AmazingRise commented on July 24, 2024

感谢建议.
在去掉 Vue 之后,KaTeX 已经加入到主题中.
代码已经发布到 testing 分支,测试结束后会放到主分支中.

from hugo-theme-diary.

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.