* feat(list): ability to show article tags on homepage closes https://github.com/CaiJimmy/hugo-theme-stack/issues/880 * Disable showTags by default
15 lines
600 B
HTML
15 lines
600 B
HTML
{{- $IsList := .IsList -}}
|
|
{{- $Page := .Page -}}
|
|
<header class="article-header">
|
|
{{- $image := partial "helper/image" (dict "Image" $Page.Params.image "Resources" $Page.Resources) -}}
|
|
{{ if $image }}
|
|
<div class="article-image">
|
|
<a href="{{ $Page.RelPermalink }}">
|
|
<img src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy"
|
|
alt="Featured image of post {{ $Page.Title }}" />
|
|
</a>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ partial "article/components/details" (dict "Page" $Page "IsList" $IsList) }}
|
|
</header> |