Jekyll - declare image path in front matter as variable using {{ site.url }}
问题 When I use the {{ site.url }} tag for an image path inside a variable in the front matter, it doesn't get translated into HTML. The following works perfectly: --- layout: post title: chickpea img: <img class="caption__media" data-interchange="[../asset/img/chickpea-small.jpg (small)], [../asset/img/chickpea-medium.jpg, (medium)], [../asset/img/chickpea-large.jpg, (large)]"> --- This does NOT work: --- layout: post title: chickpea img: <img class="caption__media" data-interchange="[{{site.url}