杰基尔,找不到文件
Jekyll, file not found
我正在尝试使用 this code
在 Jekyll
网站 table 中将 CSV 文件转换为 HTML
我将代码放在 .md
页面文件中。
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
d3.text("/_data/my_file.csv", function(data) {
...
...
...
});
</script>
当我启动 bundle exec jekyll serve
时,控制台显示
ERROR `/website/_data/my_file.csv' not found.
我做错了什么?
随便写:
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
d3.text("{{ site.data.my_file }}", function(data) {
...
...
...
});
</script>
我正在尝试使用 this code
在Jekyll
网站 table 中将 CSV 文件转换为 HTML
我将代码放在 .md
页面文件中。
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
d3.text("/_data/my_file.csv", function(data) {
...
...
...
});
</script>
当我启动 bundle exec jekyll serve
时,控制台显示
ERROR `/website/_data/my_file.csv' not found.
我做错了什么?
随便写:
<script src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript">
d3.text("{{ site.data.my_file }}", function(data) {
...
...
...
});
</script>