I am using the Receptar Skeleton to build a site. I want to display text on top of an image. The image is rendered like such:
<div class="entry-media {% if truncate %}entry-{% if page.header.youtube or page.header.soundcloud or page.header.vimeo %}video{% else %}image{% endif %}{% else %} resp_video{% endif %}">
<div class="post-thumbnail">
{% if page.media.images|first %}
{{ page.media.images|first.cropZoom(338,451).html('','', 'attachment-receptar-featured size-receptar-featured wp-post-image')| }}
{% else %}
<img class="attachment-receptar-featured size-receptar-featured wp-post-image" src="{{ theme_url }}/images/{{ site.global_featured_image }}">
{% endif %}
</div>
</div>
I've added a 'text' field to the item.md and want to put this text on top of the displayed image. Later, I will hide the text and display it on img hover. I can get the text to display, but it's always in a separate div on top, to the side, or below the img.
{% if page.header.text %}
{{page.header.text}}
{% endif %}
Is there a way to display this text on top of the rendered image without brute forcing it with CSS?
Thank you!
