Giter Site home page Giter Site logo

Comments (3)

0x0042 avatar 0x0042 commented on August 15, 2024

@laomao800 试了下原来是可以的。。。

from hexo-tag-demo.

laomao800 avatar laomao800 commented on August 15, 2024

不知具体使用场景是怎么样的,不过发现了在 <template> 标签中书写 <script> 标签会导致展开演示中的 js 演示代码有获取错误的问题, 5f0f7f1 中已修复,第三方的 <script> 引用可直接写在 <template> 中。


另外由于本插件只是简单的插入代码段,如果单纯页面上需要引入第三方 js 库的话,避免重复引入导致重复加载的话,建议也可在文章顶部通过 {% raw %} 标签插入 js 或 css 标签引入第三方文件的形式来插入。

{% raw%}
<script src="a.js"></script>
<script src="b.js"></script>
{% endraw %}

如果引用的页面较多可考虑通过 front-matter 定义一个专用的 layout 。

from hexo-tag-demo.

0x0042 avatar 0x0042 commented on August 15, 2024

@laomao800 确实会有问题,感谢提议的解决方案

from hexo-tag-demo.

Related Issues (3)

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.