* refactor: simplify image partial logic, remove generation of different image sizes * Remove `defaultImage.opengraph` configuration from `params.toml`.
13 lines
515 B
HTML
13 lines
515 B
HTML
<header class="article-header">
|
|
{{- $image := partial "helper/image" (dict "Image" .Params.image "Resources" .Resources) -}}
|
|
{{ if $image }}
|
|
<div class="article-image">
|
|
<a href="{{ .RelPermalink }}">
|
|
<img src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy"
|
|
alt="Featured image of post {{ .Title }}" />
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partialCached "article/components/details" . .RelPermalink }}
|
|
</header> |