1234567891011121314 |
- <div class="project-item">
- {{- $images := default (slice "/imgs/no-image-new.webp" "/imgs/no-image-new.png") .Params.Images }}
- {{- $altText := default "No alt text" .Params.ImageAltText }}
- <a href="{{ .RelPermalink }}">
- <img srcset="{{ delimit $images ", " }}" src="{{ index (last 1 $images) 0 }}" alt="{{ $altText }}" />
- </a>
- <div class="project-body">
- <div class="project-title">
- <a href="{{ .RelPermalink }}">{{ .Title }}</a>
- </div>
- <p class="project-description">{{ .Description }}</p>
- </div>
- </div>
|