我正在尝试使用 Hugo 引擎从头开始创建网站。在此之前,我使用的是 html 页面。我想知道我是否有一个帖子 into.md 我如何在其中添加脚本,以便它可以向我显示其中的输出(例如 d3js 可视化)。
谢谢你。
If you want to include a specific script just for a specific page, you can define a shortcode, which takes the required input. Otherwise define it in the layout of your page, if it used on multiple pages.