У меня есть этот код
{% for post in site.posts %}
{% if forloop.first == true %}
<div class="item-1">
<a href="{{ post.url }}" class="card">
{% assign foundImage = 0 %}
{% assign images = post.content | split:"<img src="" %}
{% for image in images %}
{% if image contains '/image' %}
{% if foundImage == 0 %}
{% assign html = image | split:"alt" | first %}
<div class="thumb" style="background-image:url( {{ html }} )"></div>
{% assign foundImage = 1 %}
{% endif %}
{% endif %}
{% endfor %}
Я получил первое изображение из поста в блоге, используя strip
Я смог вывести \images\firs-post.png
из {{ html }}
, но когда я это сделал
<div style="background-image:url( {{ html }} )></div>
Не работает ... Пожалуйста, помогите