我正在写一个。社交媒体分享功能,如Facebook OpenGraph和,需要有一个完整的绝对URL到资源,如图片。Twitter特别拒绝任何与图片相关的URL。目前,我只是使用自己的站点内配置来生成Nunjucks模板中的URL:
{# page_twitter_image is a site root relative pat
Eleventy不会向从嵌套index.md文件生成的索引文件添加html后缀。images | +- index.md +- index.md +- about.md 然后,当我运行命令npx eleventyindex.html <----- this file is ok however +- about.html <----- and so is this file 这就是我设置.eleventy.js
我希望能够使用来创建父集合和子集合,然后我可以遍历这些集合来创建导航。---tags: continents我遍历它来创建一个链接列表: {% for post in collections.continents %}
<li><a href="{{ post_url | post }}">{{ post.data.title}}</a>
我有一个aws函数,它调用eleventy.write()或eleventy.toJSON()方法,但似乎无法使它工作。我尝试过不同的项目结构和设置不同的路径,但是它要么返回一个空数组,要么在从终端运行eleventy命令时抛出以下错误eleventy,它成功构建。= new Eleventy("还尝试过像这样设置configPath
let eleventy = new Eleventy("../.eleventy.js
我已经克隆了这个十一点:https://github.com/anborg/eleventy-netlify-boilerplate 我正在尝试使用本地git repo启用netlify CMS。, "description": "A boilerplate for building a fast static website with the Eleventy",
"scrip