I am new to hugo, I would be appreciated on my first steps.
I am trying to align the preview image with a summary. code of preview.html
:
<article class="post-preview"> <a href="{{ .Permalink }}"> <h2 class="post-title">{{ .Title }}</h2> </a> <div class="post-entry"> {{ if .Truncated }} <img width="50" height="50" src="{{ with .Params.image }}{{ . }}{{ end }}"/> <p>{{ .Summary }}</p> <a href="{{ .Permalink }}" class="post-read-more">{{ i18n "read-more" }}</a> {{ end }} </div> <div class="postmeta"> {{ partial "postmeta.html" . }} </div> </article>
How to align text and image with the same height:
Thanks