I have a summary.html for an instagram post type:
<div class="row">
<div class="col-12">
{{ with .Params.featured_image }}
<img src="{{ .Params.featured_image }}" class="img-fluid">
{{ end }}
</div>
</div>
a sample .md looks like this:
---
date: 2013-02-12T09:58:42+00:00
featured_image: /instagram/2013-02-12_09.58.42_389381574568326985_297183724/2013-02-12_09.58.42_389381574568326985_297183724.jpg
title: Untitled
---
but hugo server
fails with the following error:
ERROR 2018/02/07 19:09:09 in .Render: Failed to execute template "instagram/summary.html" for page "instagram/2013-02-12_09.58.42_389381574568326985_297183724/index.md"
I already know, that it’s the {{ with }} part that causes issues, because if I take it out the template compiles.
What am I doing wrong?