|
@ -11,10 +11,11 @@ Renders an article card with a circle image, title, and summary. |
|
|
{{- $title := .title }} |
|
|
{{- $title := .title }} |
|
|
{{- $summary := .summary }} |
|
|
{{- $summary := .summary }} |
|
|
{{- $url := .url }} |
|
|
{{- $url := .url }} |
|
|
|
|
|
{{- $img := ($image.Resize "256x webp q90") }} |
|
|
<a href="{{ $url }}"> |
|
|
<a href="{{ $url }}"> |
|
|
<article class="alt float-on-hover shadow"> |
|
|
<article class="alt float-on-hover shadow"> |
|
|
<div> |
|
|
<div> |
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" /> |
|
|
<img src="{{ $img.RelPermalink }}" alt="{{ $alt }}" /> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
<div> |
|
|
<h2>{{ $title }}</h2> |
|
|
<h2>{{ $title }}</h2> |
|
|